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
- Comptabilité
- Inventaire
- PoS
- Projet
- MRP
Cette question a été signalée
1
Répondre
10419
Vues
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!"),
]
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
nov. 25
|
6065 | ||
|
How to find the field type?
Résolu
|
|
1
juin 25
|
5912 | |
|
|
3
juil. 20
|
12739 | ||
|
|
0
nov. 16
|
5228 | ||
|
|
1
août 15
|
5537 |