From d81dcdc8cf8a7aab25fbda1de7d2a2ff3bfde909 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Mon, 8 Feb 2010 18:44:47 +0530 Subject: [PATCH] [FIX] Sale : SOL's subtotal was missign price-accuracy lp bug: https://launchpad.net/bugs/459027 fixed bzr revid: jvo@tinyerp.com-20100208131447-je1th6tb1ql1mau3 --- addons/sale/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 263c5f3c233..56e2ac8b880 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -758,7 +758,7 @@ class sale_order_line(osv.osv): 'procurement_id': fields.many2one('mrp.procurement', 'Procurement'), 'price_unit': fields.float('Unit Price', required=True, digits=(16, int(config['price_accuracy'])), readonly=True, states={'draft':[('readonly',False)]}), 'price_net': fields.function(_amount_line_net, method=True, string='Net Price', digits=(16, int(config['price_accuracy']))), - 'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal'), + 'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal', digits=(16, int(config['price_accuracy']))), 'tax_id': fields.many2many('account.tax', 'sale_order_tax', 'order_line_id', 'tax_id', 'Taxes', readonly=True, states={'draft':[('readonly',False)]}), 'type': fields.selection([('make_to_stock', 'from stock'), ('make_to_order', 'on order')], 'Procure Method', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'property_ids': fields.many2many('mrp.property', 'sale_order_line_property_rel', 'order_id', 'property_id', 'Properties', readonly=True, states={'draft':[('readonly',False)]}),