how to cancel that option when one field have 1 information in specific.
for example, if field1 = lalalala, the user cant duplicate the document
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 !')
]
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
1
iun. 25
|
1931 | ||
|
3
iul. 25
|
3519 | ||
|
1
mai 25
|
1638 | ||
|
1
mai 25
|
1889 | ||
|
4
mai 25
|
3011 |