Skip to Content
मेन्यू
This question has been flagged

If you want to prevent users from creating new records from a relational field

Avatar
Discard

You can do it dynamically based on each model and its fields (relational fields) in v16 and v17: https://apps.odoo.com/apps/modules/17.0/mh_dynamic_many2one_field_options

Author Best Answer

If you want to prevent users from creating new records from a relational field (just like the country_id field on the res.partner model), just add this in the xml view: options="{"no_open": True, "no_create": True}".

For example:

.

will prevent users from creating new roles from the x_role_id field.

Avatar
Discard
Related Posts Replies Views Activity
1
जन॰ 25
10016
1
मई 21
2308
1
अप्रैल 21
8392
2
जन॰ 25
5999
4
दिस॰ 24
16505