0
votes

I have something like this:

<tree string="Lines" editable="bottom">
 <field name="required_weekday" widget="many2many_tags"/>
</tree>

When I edit the many2many_tags has a create and edit option. But since I'm dealing with weekdays I just have a pre-populated model and there's no need to add additional ones. How can I disable create and edit?

2
I think you should use it as selecton - Atul Jain
@AtulJain I don't understand. - Kit Sunde

2 Answers

0
votes
0
votes

Just make your field look like this on your XML:

<field name="your_field" widget="many2many_tags" options="{'no_create_edit': True}"/>