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 !')
]
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
giu 25
|
1926 | ||
|
3
lug 25
|
3518 | ||
|
1
mag 25
|
1636 | ||
|
1
mag 25
|
1888 | ||
|
4
mag 25
|
3007 |