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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Proje Yönetimi
- MRP
Bu soru işaretlendi
1
Cevapla
10412
Görünümler
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!"),
]
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
1
Kas 25
|
6060 | ||
|
How to find the field type?
Çözüldü
|
|
1
Haz 25
|
5912 | |
|
|
3
Tem 20
|
12735 | ||
|
|
0
Kas 16
|
5217 | ||
|
|
1
Ağu 15
|
5532 |