[FIX] fix bad precision for report

bzr revid: benoit.guillot@akretion.com.br-20120711090136-2k1tuzxtdtx0drlk
This commit is contained in:
Benoit Guillot 2012-07-11 11:01:36 +02:00
parent 5b280dded9
commit 9155104359
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ class report_custom(report_rml):
</row>
""" % (_('Components'), _('Components suppliers'), _('Quantity'),_('Cost Price per Unit of Measure'), _('Supplier Price per Unit of Measure'))
purchase_price_digits = rml_obj.get_digits(dp='Purchase Price')
purchase_price_digits = rml_obj.get_digits(dp='Price Unit')
for product in product_pool.browse(cr, uid, ids, context=context):
product_uom_name = to_xml(product.uom_id.name)

View File

@ -112,7 +112,7 @@ class product_pricelist(report_sxw.rml_parse):
return res
def _get_price(self,pricelist_id, product_id,qty):
sale_price_digits = self.get_digits(dp='Sale Price')
sale_price_digits = self.get_digits(dp='Price Unit')
pool = pooler.get_pool(self.cr.dbname)
price_dict = pool.get('product.pricelist').price_get(self.cr, self.uid, [pricelist_id], product_id, qty, context=self.localcontext)
if price_dict[pricelist_id]: