[FIX] stock: production lot as no longer a company_id field

This commit is contained in:
Martin Trigaux 2014-07-31 09:21:45 +02:00
parent e4cb5202a0
commit c86f217f7e
1 changed files with 1 additions and 1 deletions

View File

@ -1442,7 +1442,7 @@ class stock_production_lot(osv.osv):
'product_id': lambda x, y, z, c: c.get('product_id', False),
}
_sql_constraints = [
('name_ref_uniq', 'unique (name, ref, product_id, company_id)', 'The combination of Serial Number, internal reference, Product and Company must be unique !'),
('name_ref_uniq', 'unique (name, ref, product_id)', 'The combination of serial number, internal reference and product must be unique !'),
]
def action_traceability(self, cr, uid, ids, context=None):