Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
8566 Weergaven

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
Annuleer

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

Auteur

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

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
mrt. 15
11880
1
mrt. 15
7736
2
aug. 25
3068
1
feb. 22
3622
1
nov. 24
19977