Odoo 14 EE
How to create a unique field in product.product
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Progetti
- MRP
La domanda è stata contrassegnata
1
Rispondi
10390
Visualizzazioni
Hi,
you can use SQL constraints option to specify rules for the data in a table.
If there is any violation between the constraint and the data action, the action is aborted by the constraint.
_sql_constraints = [
('name_uniq', 'unique (name)', "Tag already exists!"),
]
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
1
nov 25
|
6055 | ||
|
How to find the field type?
Risolto
|
|
1
giu 25
|
5906 | |
|
|
3
lug 20
|
12732 | ||
|
|
0
nov 16
|
5205 | ||
|
|
1
ago 15
|
5522 |