From a46214f11f33cda2a91f916d31a5c4a375d1e013 Mon Sep 17 00:00:00 2001 From: "ACH,JVO" <> Date: Wed, 26 Aug 2009 18:06:48 +0530 Subject: [PATCH] [FIX] Account_tax_include : onchange of product on invoice line price type issue lp bug: https://launchpad.net/bugs/416767 fixed bzr revid: jvo@tinyerp.com-20090826123648-w1tc3c8j2ssgglvs --- addons/account_tax_include/invoice_tax_incl.py | 4 ++-- addons/account_tax_include/invoice_tax_incl.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account_tax_include/invoice_tax_incl.py b/addons/account_tax_include/invoice_tax_incl.py index e42800d..afe2138 100644 --- a/addons/account_tax_include/invoice_tax_incl.py +++ b/addons/account_tax_include/invoice_tax_incl.py @@ -140,11 +140,11 @@ class account_invoice_line(osv.osv): else: return super(account_invoice_line, self).product_id_change_unit_price_inv(cr, uid, tax_id, price_unit, qty, address_invoice_id, product, partner_id, context=context) - def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, price_type='tax_excluded', context=None): + def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, context=None): # note: will call product_id_change_unit_price_inv with context... if context is None: context = {} - context.update({'price_type': price_type}) + context.update({'price_type': context.get('price_type','tax_excluded')}) return super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, address_invoice_id, context=context) account_invoice_line() diff --git a/addons/account_tax_include/invoice_tax_incl.xml b/addons/account_tax_include/invoice_tax_incl.xml index 2da7895..946aa06 100644 --- a/addons/account_tax_include/invoice_tax_incl.xml +++ b/addons/account_tax_include/invoice_tax_incl.xml @@ -58,7 +58,7 @@ - + -- 1.7.10.4