[FIX] Account_tax_include : onchange of product on invoiceline passed wrong parameters
authorJay (Open ERP) <jvo@tinyerp.com>
Fri, 21 Aug 2009 09:20:02 +0000 (14:50 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Fri, 21 Aug 2009 09:20:02 +0000 (14:50 +0530)
lp bug: https://launchpad.net/bugs/416467 fixed

bzr revid: jvo@tinyerp.com-20090821092002-dxl7b9y7rpsipsxt

addons/account_tax_include/invoice_tax_incl.xml

index 2da7895..2fee7eb 100644 (file)
@@ -58,7 +58,7 @@
             <field name="inherit_id" ref="account.invoice_supplier_form"/>
             <field name="arch" type="xml">
                 <field name="product_id" position="replace">
-                    <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id, parent.price_type)"/>
+                    <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id, price_type=parent.price_type)"/>
                 </field>
             </field>
         </record>