Would like to ask any solutions for prevent duplicates in DB to format the API call?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
1
Respondre
2316
Vistes
Use SQL constraints on model
class PosOrder(models.Model):
_inherit = "pos.order"
_sql_constraints = [('name_uniq', 'unique (name)', "Order with this name 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!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
3
d’abr. 25
|
875 | ||
|
1
de gen. 25
|
1722 | ||
|
1
d’ag. 24
|
1686 | ||
|
2
de maig 24
|
1395 | ||
|
3
de maig 24
|
10723 |