跳至內容
選單
此問題已被標幟
2 回覆
8575 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
3月 15
11886
1
3月 15
7740
2
8月 25
3074
1
2月 22
3628
1
11月 24
19977