[IMP] mrp : Improve the error message

bzr revid: mdi@tinyerp.com-20111117103737-iqzj2x7pggamm54q
This commit is contained in:
Divyesh Makwana (Open ERP) 2011-11-17 16:07:37 +05:30
parent 0a2f3dff17
commit 403d9194c7
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ class mrp_production(osv.osv):
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'mrp.production', context=c),
}
_sql_constraints = [
('name_uniq', 'unique(name, company_id)', 'Order Reference must be unique per Company!'),
('name_uniq', 'unique(name, company_id)', 'Reference must be unique per Company!'),
]
_order = 'priority desc, date_planned asc';