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
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
1
Відповісти
2355
Переглядів
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!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
3
квіт. 25
|
912 | ||
|
1
січ. 25
|
1741 | ||
|
1
серп. 24
|
1710 | ||
|
2
трав. 24
|
1417 | ||
How to delete POS Sessions! Odoo 16
Вирішено
|
|
3
трав. 24
|
10767 |