[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
This commit is contained in:
Alexandre
2012-08-14 18:42:11 +05:30
committed by Amit Bhavsar (Open ERP)
parent 11bdbfd183
commit 2d8559b626
+1 -1
View File
@@ -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
}