コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
8562 ビュー

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
11878
1
3月 15
7732
2
8月 25
3062
1
2月 22
3620
1
11月 24
19975