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.
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;
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
2
mar. 15
|
11991 | |||
|
1
oct. 25
|
6333 | |||
|
0
dec. 24
|
11180 | |||
|
|
3
sept. 24
|
23642 | ||
|
5
dec. 24
|
56247 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.