I want to remove _sql_constraints (database level).
For example in account_invoice.py there is a constraints on number field. Now I want to remove it.
Can anyone have idea how to deal with this?
Thank you.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to remove _sql_constraints (database level).
For example in account_invoice.py there is a constraints on number field. Now I want to remove it.
Can anyone have idea how to deal with this?
Thank you.
you could remove it using psql command. for example if you have the following constraint
_sql_constraints = [
('phone_company_unique', 'unique(type,phone)', 'The phone unique among companies!')
]
you could use:
ALTER TABLE res_partner DROP CONSTRAINT res_company_phone_company_unique;
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
2
มี.ค. 15
|
11357 | |||
|
1
ต.ค. 25
|
5575 | |||
|
0
ธ.ค. 24
|
10498 | |||
|
|
3
ก.ย. 24
|
22974 | ||
|
How to activate the Technical Features?
แก้ไขแล้ว
|
5
ธ.ค. 24
|
55048 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.