Community: Framework mailing list archives

Re: select list item and enable many2many fields

Ecosoft Co. LTD, Kitti Upariphutthiphong
- 03/27/2016 09:03:22
Hi, do you mean,

When a selection field is selected, i.e., field_selection = 'ab', then, you want a mymany2many_field_ids field to be visible?

In that case, you can use <field name='mymany2many_field_ids' attrs="{'invisible': [('field_selection', '!=', 'abc')]}" />

attrs option in field tag is useful to do dynamic thing.


On Sun, Mar 27, 2016 at 2:57 PM, Anucha Petchagun <> wrote:
I want to create a form with a select field, . And when select field's value was changed, the tree view that related to a Many2many field will enable. I have completely no idea to do this. Could you please give me some guide?

Thank you.


Regards you.
Anucha Petchagun (Big)

Freelance Web Developer.
Freelance Photographer.

Feel free to contact me.
(+66) 86 317 3904

Post to:

Mobile: +66-(0)8-1841-7480
Your ERP Partner =>