Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
8608 Переглядів

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
11891
1
бер. 15
7754
2
серп. 25
3101
1
лют. 22
3638
1
лист. 24
19987