From 2d8559b6266b2873199a534c0aeccf7d8a436712 Mon Sep 17 00:00:00 2001 From: Alexandre <> Date: Tue, 14 Aug 2012 18:42:11 +0530 Subject: [PATCH] [FIX] product : Fixes the impossible to get a seller delay of 0 lp bug: https://launchpad.net/bugs/1034799 fixed bzr revid: amb@tinyerp.com-20120814131211-b385ixr3z75hfjpe --- addons/product/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/product.py b/addons/product/product.py index 2a62d9c2531..b81ff6c78b4 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -484,7 +484,7 @@ class product_product(osv.osv): main_supplier = self._get_main_product_supplier(cr, uid, product, context=context) result[product.id] = { 'seller_info_id': main_supplier and main_supplier.id or False, - 'seller_delay': main_supplier and main_supplier.delay or 1, + 'seller_delay': main_supplier.delay if main_supplier else 1, 'seller_qty': main_supplier and main_supplier.qty or 0.0, 'seller_id': main_supplier and main_supplier.name.id or False }