From 89a9dbee75bbf53b9ef5f62da5629d566d42ab54 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 11 Dec 2013 14:41:20 +0100 Subject: [PATCH] [FIX] mrp: cost structure report, do not display twice main supplier bzr revid: dle@openerp.com-20131211134120-fco4rlqjh258ba36 --- addons/mrp/report/price.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/mrp/report/price.py b/addons/mrp/report/price.py index 2e37011e2bc..2bfab5dd6ca 100644 --- a/addons/mrp/report/price.py +++ b/addons/mrp/report/price.py @@ -69,6 +69,8 @@ class report_custom(report_rml): main_strd_price = str(std_price) + '\r\n' sum_strd = prod_qtty*std_price for seller_id in prod.seller_ids: + if seller_id.name.id == prod.seller_id.id: + continue sellers += '- '+ to_xml(seller_id.name.name) +'\r\n' pricelist = seller_id.name.property_product_pricelist_purchase price = pricelist_pool.price_get(cr,uid,[pricelist.id],