Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
8789 Zobrazení

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 ?

Avatar
Zrušit

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

Autor

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

Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
bře 15
12058
1
bře 15
7884
2
srp 25
3564
1
úno 22
3767
1
lis 24
20227