From 633a8ec9b95a47fd3a3db83f4d56da255e669f11 Mon Sep 17 00:00:00 2001 From: manu Date: Tue, 3 Jan 2012 16:28:42 +0100 Subject: [PATCH] [UPDATE] --- product_warranty/product_warranty.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product_warranty/product_warranty.py b/product_warranty/product_warranty.py index b11858e3..544c3a82 100644 --- a/product_warranty/product_warranty.py +++ b/product_warranty/product_warranty.py @@ -54,7 +54,9 @@ class product_supplierinfo(osv.osv): def _get_default_instructions(self, cr, uid,context): instruction_ids = self.pool.get('return.instruction').search(cr, uid, [('is_default','=','FALSE')]) if instruction_ids: - return instruction_ids[0] + return instruction_ids[0] + # TO DO f(supplier) + other... + return False _columns = { "warranty_duration" : fields.float('Warranty', help="Warranty in month for this product/supplier relation. Only for company/supplier relation (purchase order) ; the customer/company relation (sale order) always use the product main warranty field"),