[IMP] stock : Improve the error message

bzr revid: mdi@tinyerp.com-20111117064409-3uxjcbd5g1y7jmrm
This commit is contained in:
Divyesh Makwana (Open ERP)
2011-11-17 12:14:09 +05:30
parent fa247f3357
commit 0a2f3dff17
+1 -1
View File
@@ -662,7 +662,7 @@ class stock_picking(osv.osv):
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.picking', 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!'),
]
def action_process(self, cr, uid, ids, context=None):