Skip to content
Snippets Groups Projects
Commit e893651c authored by yograj tandel's avatar yograj tandel Committed by Aaron Bohy
Browse files

[IMP] *: remove widget='selection' from many2one fields


Currently, across Odoo, there are around 40+ many2one fields defined with a
'selection' widget. Since the many2one widget has options to limit record
creation and opening, there is no reason to define a many2one field with a
selection widget. The selection widget does not allow for searching, and is
limited to 100 records.

PURPOSE
to update the definition of any many2one on which we applied a 'selection'
 widget, and instead use the standard many2one widget with disabled
opening/creation instead.

after this commit,
for each many2one field defined with widget="selection",  widget="selection" is
replaced with options="{'no_open': True, 'no_create': True}"

Task : 2476488

closes odoo/odoo#68387

Related: odoo/enterprise#17316
Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
parent 76e31d5f
No related branches found
No related tags found
No related merge requests found
Showing
with 23 additions and 23 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment