Hi everyone, I'd like to constraint contact/company with same name,
I added this lines of code to /odoo/models.py , /odoo/addons/base/models/res_partner.py
_sql_constraints = [('name_uniq', 'unique (name)', 'The company name must be unique !'),
('email_uniq', 'unique(email)', ' Please enter Unique email no.')] #: SQL constraints [(name, sql_def, message)]
a restart odoo in windows and in linux aswell, but constraint doesn't work,
in what file I have to add this lines?