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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Would like to ask any solutions for prevent duplicates in DB to format the API call?
Use SQL constraints on model
class PosOrder(models.Model):
_inherit = "pos.order"
_sql_constraints = [('name_uniq', 'unique (name)', "Order with this name already exists!"), ]
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
3
4월 25
|
1251 | ||
|
1
1월 25
|
1897 | ||
|
1
8월 24
|
2027 | ||
|
2
5월 24
|
1574 | ||
|
3
5월 24
|
11218 |