Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
8497 Visualizzazioni

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
Abbandona

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

Autore

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

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
mar 15
11854
1
mar 15
7700
2
ago 25
2998
1
feb 22
3589
1
nov 24
19949