2

How to disable the popup adding form when adding a new line in many2many field tree view? Everytime I add a line, it always open a popup form, I just want to add a line directly in tree view only.

I've tried editable="bottom" and editable="top" in tree view but it's not working for me.

Jeff
  • 21
  • 4

1 Answers1

2

You can try with following option:

widget="many2many_tags"

For example:

<field name="many2many_field_name"
       widget="many2many_tags" 
       options="{'color_field': 'color', 'no_create_edit': True}"
       placeholder="XYZ..."/>

EDIT

For the tree view:

widget="one2many_list"
Bhavesh Odedra
  • 10,990
  • 12
  • 33
  • 58
  • 1
    Thank you so much. I add widget="one2many_list" in field and it works. I'm adding the widget in tree view and not in the field earlier so that's why it's not working. Thank you again. – Jeff Sep 27 '22 at 08:07
  • Cool. I edit it in the answer. – Bhavesh Odedra Sep 27 '22 at 17:06