Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
Get notified when there's activity on this post
how to cancel that option when one field have 1 information in specific.
for example, if field1 = lalalala, the user cant duplicate the document
Hi,
You can use constraints for this,
_sql_constraints = [ ('name_uniq', 'UNIQUE (field_name)', 'The name must be unique !') ]
https://www.odoo.com/documentation/15.0/developer/howtos/rdtraining/11_constraints.html
1. Use the live chat to ask your questions. 2. The operator answers within a few minutes.