Skip to content
Snippets Groups Projects
Commit cd9c305d authored by Fabien Pinckaers's avatar Fabien Pinckaers
Browse files

merge

lp bug: https://launchpad.net/bugs/855464 fixed

bzr revid: fp@tinyerp.com-20110924091251-4zb4pnczdplflv3l
parents c3a79fbc 88de9bfe
No related branches found
No related tags found
No related merge requests found
......@@ -250,9 +250,9 @@ class product_template(osv.osv):
result[product.id] = {field:False}
result[product.id]['seller_delay'] = 1
if product.seller_ids:
partner_list = sorted([(partner_id.sequence, partner_id)
partner_list = [(partner_id.sequence, partner_id)
for partner_id in product.seller_ids
if partner_id and isinstance(partner_id.sequence, (int, long))])
if partner_id and isinstance(partner_id.sequence, (int, long))]
main_supplier = partner_list and partner_list[0] and partner_list[0][1] or False
result[product.id]['seller_delay'] = main_supplier and main_supplier.delay or 1
result[product.id]['seller_qty'] = main_supplier and main_supplier.qty or 0.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment