how to cancel that option when one field have 1 information in specific.
for example, if field1 = lalalala, the user cant duplicate the document
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
how to cancel that option when one field have 1 information in specific.
for example, if field1 = lalalala, the user cant duplicate the document
Hi,
You can use constraints for this,
_sql_constraints = [
('name_uniq', 'UNIQUE (field_name)', 'The name must be unique !')
]
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
9월 25
|
1971 | ||
|
1
6월 25
|
1998 | ||
|
3
7월 25
|
3579 | ||
|
1
5월 25
|
1701 | ||
|
4
5월 25
|
3050 |