Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: select list item and enable many2many fields

by
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.

Kitti

On Sun, Mar 27, 2016 at 2:57 PM, Anucha Petchagun <corelmax@gmail.com> wrote:
Hi,
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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Mobile: +66-(0)8-1841-7480
Your ERP Partner => www.ecosoft.co.th