From c86f217f7e9d654cb690c6a00c4f87b62d430516 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 31 Jul 2014 09:21:45 +0200 Subject: [PATCH] [FIX] stock: production lot as no longer a company_id field --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 08b5e133587..bd15588a941 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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):