[IMP] Improved sql_constraint in hr Job Positions

bzr revid: ggh@tinyerp.com-20121214123247-mr9xz5f6pnos84pd
This commit is contained in:
ggh-openerp 2012-12-14 18:02:47 +05:30
parent 3d3e08913d
commit c6ff1f2fb5
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class hr_job(osv.osv):
}
_sql_constraints = [
('name_company_uniq', 'unique(name, company_id)', 'The name of the job position must be unique per company!'),
('name_company_uniq', 'unique(name, company_id, department_id)', 'The name of the job position must be unique per company!'),
]