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
6月 25
|
1925 | ||
|
3
7月 25
|
3517 | ||
|
1
5月 25
|
1635 | ||
|
1
5月 25
|
1886 | ||
|
4
5月 25
|
3007 |