Skip to Content
Menu
This question has been flagged
2 Replies
8526 Rodiniai

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 ?

Portretas
Atmesti

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

Autorius

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

Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
kov. 15
11864
1
kov. 15
7719
2
rugp. 25
3032
1
vas. 22
3606
1
lapkr. 24
19968