[FIX] Account: Supplier invoices was not taking product price on onchange of product
authorJay (Open ERP) <jvo@tinyerp.com>
Fri, 25 Sep 2009 15:21:24 +0000 (20:51 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Fri, 25 Sep 2009 15:21:24 +0000 (20:51 +0530)
lp bug: https://launchpad.net/bugs/436174 fixed

bzr revid: jvo@tinyerp.com-20090925152124-kmh3iiikco7e8asg

addons/account/account_invoice_view.xml

index 6d14f25..8822568 100644 (file)
@@ -52,7 +52,7 @@
                 <form string="Invoice Line">
                     <notebook>
                         <page string="Line">
-                            <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position)" select="1"/>
+                            <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)" select="1"/>
                             <field name="uos_id"/>
                             <field name="quantity" select="1"/>
                             <field name="price_unit" select="1"/>