Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8631 Представления

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
11898
1
мар. 15
7765
2
авг. 25
3124
1
февр. 22
3658
1
нояб. 24
20019