OnChange Field Inside Many2one Filed - odoo

I there any way to achieve something like this: api.onchange(mo_bom_id.type)
I want to change a field inside sale.order.line based on a change of many2one field for mrp.bom
so, when I click the many2one external link that takes me to a wizard form view to change the bom type then click save, I want this change to reflect immediately on another field for sale.order.line in the source view.
basically the changes won't appear unless I click save in sale.order form view.
any solutions for this mistery?!
Thanks!

Related

why my field field does not want to appear in my link menu?

I would like to add an image type field (QR code precisely) in my edit link menu.
For this: I added and installed the module: Menu Item Extras (which allows to do that).
however, when I create my field in manage field, it does not want to be displayed.
In "manage display", it is not disabled.
what did I forget?
her my field created
manage form display

How to add an existing form in a specific tabpage of a main form?

I'm working on an Access database that will generate forms automatically. For each form, I want to add a page with the same name of the form, and this page will contain the form.
For now, I managed to create the forms, to add a page on the tab control but I can't find the way to add the form created into the page.
In design view, it's possible to drag and drop the form directly into the page. Is there any way in VBA code to obtain the same result ?
Update: I want for the forms inserted to have 'Link Master Fields' and 'Link child fields' empty (unbound form).
Thank you!

ListGrid column change event

I have requirement to create a custom ListGrid, where user can show, hide, filter a column. also can change width and reOrder column and even color it and sort direction.
I know that list grid provide all this facility to user.
But I have to save all these changes and user will get this things back when they login again.
Is there any event which record all changes??
And how to get all this data from listGrid??
​Thank you.
You could use ListGrid.viewStateChanged():
Notification method executed whenever the viewState of this grid
changes. View state is accessible via ListGrid.getViewState(), and
contains field state information, sort information, selection
information, hiliting information and grouping information.

phpbb3 how to modify the profile fields?

Somebody knows how could I add a label underneath the profile information ? what files have I to modify?
I want something like this :
To add custom fields, log in to the administration control panel of your phpBB3 board, click on the Users and Groups tab, and then on the Custom profile fields link on the left. On the Custom profile fields page you'll see a drop-down menu from which you can select the type of field. There are several options: numbers, single text field, textarea, boolean (yes/no), dropdown box, date. After you select the type of field click on the Create new field button that's right next to the drop-down menu.
You'll be taken to a page with some options. The options are divided into three sections: Add profile field, Visibility options, and Language specific options. You don't have to configure everything. In the Add profile field section type a name in the field for Field identification. This is the name with which the field will be identified in the database. In the section labeled Visibility options you can choose where you want the field to be displayed (e.g. user control panel, registration screen, viewtopic screen). You can also make the field a required one; you can do this if, for example, you want to make the particular field a necessary part of the registration form.
In the section Language specific options type a name in the field for Field name. This is the name that will be visible to users. In the textarea for Field description you can also add a short explanation or description. Depending on the type of field, in this section there may also be some other options specific to the field type.
After you configure all the necessary settings click on the button Profile type specific options in the lower right corner of the screen. You'll be shown some options that are specific to the particular field type. After you're done with these options click on the Save button. If there are other language packs installed on your board, you'll be offered the chance to translate the field name, description, etc., into the particular language.
Once the custom field is created you can edit or delete it at any time from Users and Groups tab>Custom profile fields. Done!

Is it possible to add one2many inside one2many field in openerp?

For example I need to add bom lines inside sale order lines. I have created an on_change function to load the bom lines if the product have bom. It is working fine in GTK, but when I try to add in web client, its not working..
Look at the product screen's Suppliers tab. One product can have many suppliers and each supplier can have many prices. To see the price list, you must enable the extended view for your user account.
Here's a screen shot of the GTK client with the suppliers switched from tree view to form view so you can see both levels.
The web client can't display both levels at the same time. You have to open the supplier in a dialog box, and it shows you the list of prices there.
is it possible to trigger control to another form based on th onchange of a selection field? the new form is to be linked to the new button of the existing form.