PURCHASE: fix the UOM for purchase line and improve update price unit
[odoo/odoo.git] / addons / purchase / purchase_view.xml
index 1c9b2a0..a28c829 100644 (file)
                                                <field name="account_analytic_id"/>
                                                <newline/>
                                                <field name="product_qty"/>
-                                               <field name="product_uom"/>
+                                               <field name="product_uom" on_change="product_uom_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id)"/>
                                                <field name="product_id" colspan="3" on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id)" context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id"/>
                                                <field name="name" colspan="3"/>
                                                <field name="date_planned"/>