Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
8597 มุมมอง

I tried adding a model constraint of type 'u' from Settings -> Database Structure -> Model constraints to res.partner's base module. But there was no way to specify column/field name to which the constraint should apply ?

I hope there is a way to add constraint without altering any Odoo code. 

Any suggestions ?

อวตาร
ละทิ้ง

I think there is no option to add constraint from back end.

ผู้เขียน

Will adding/updating ir.model.constraint work without creating any other issue ?

คำตอบที่ดีที่สุด

Hi

To add this you must go to the code

It can not be increased by the user interface

because you deserve to restart the server odoo 

look this code 

https://stackoverflow.com/questions/31513326/what-is-the-correct-format-to-use-unique-in-sql-constraints-in-openerp

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
มี.ค. 15
11888
1
มี.ค. 15
7749
2
ส.ค. 25
3091
1
ก.พ. 22
3633
1
พ.ย. 24
19979