openerp-brazil-team team mailing list archive
-
openerp-brazil-team team
-
Mailing list archive
-
Message #01430
[Merge] lp:~mileo/openerp.pt-br-localiz/openerp.pt-br-localiz-ipi-kg into lp:openerp.pt-br-localiz
Luis Felipe Miléo - http://www.akretion.com has proposed merging lp:~mileo/openerp.pt-br-localiz/openerp.pt-br-localiz-ipi-kg into lp:openerp.pt-br-localiz.
Requested reviews:
Renato Lima - http://www.akretion.com (renatonlima)
For more details, see:
https://code.launchpad.net/~mileo/openerp.pt-br-localiz/openerp.pt-br-localiz-ipi-kg/+merge/143892
--
https://code.launchpad.net/~mileo/openerp.pt-br-localiz/openerp.pt-br-localiz-ipi-kg/+merge/143892
Your team OpenERP Brazil Team is subscribed to branch lp:openerp.pt-br-localiz.
=== modified file 'l10n_br_account/account.py'
--- l10n_br_account/account.py 2012-08-27 02:11:28 +0000
+++ l10n_br_account/account.py 2013-01-18 14:20:43 +0000
@@ -37,8 +37,7 @@
for tax in taxes:
if tax.get('type') == 'weight' and product:
- product_read = self.pool.get('product.product').read(cr, uid, product, ['weight_net'])
- tax['amount'] = round((product_qty * product_read.get('weight_net', 0.0)) * tax['percent'], precision)
+ tax['amount'] = round((product_qty * product.weight_net * tax['percent'], precision)
if tax.get('type') == 'quantity':
tax['amount'] = round(product_qty * tax['percent'], precision)