Amit Bhavsar (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-979672-amb into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Amit Bhavsar (Open ERP) (amb-openerp)
Amit Parik (OpenERP) (amp-openerp)
Related bugs:
Bug #979672 in OpenERP Addons: "hr_expense UoM not changing"
https://bugs.launchpad.net/openobject-addons/+bug/979672
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-979672-amb/+merge/101728
Hello,
Fixes the problem of UOM where onchange call "onchange_product_id" in Expanse
lines.
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-979672-amb/+merge/101728
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-979672-amb.
=== modified file 'hr_expense/hr_expense.py'
--- hr_expense/hr_expense.py 2012-08-16 08:34:02 +0000
+++ hr_expense/hr_expense.py 2012-08-28 10:05:53 +0000
@@ -283,8 +283,7 @@
res['name'] = product.name
amount_unit = product.price_get('standard_price')[product.id]
res['unit_amount'] = amount_unit
- if not uom_id:
- res['uom_id'] = product.uom_id.id
+ res['uom_id'] = product.uom_id.id
return {'value': res}
hr_expense_line()
=== modified file 'hr_expense/hr_expense_view.xml'
--- hr_expense/hr_expense_view.xml 2012-08-16 05:15:18 +0000
+++ hr_expense/hr_expense_view.xml 2012-08-28 10:05:53 +0000
@@ -99,7 +99,7 @@
<label for="unit_quantity"/>
<div>
<field name="unit_quantity" class="oe_inline"/>
- <field name="uom_id" on_change="onchange_product_id(product_id, uom_id, parent.employee_id, context)" class="oe_inline"/>
+ <field name="uom_id" class="oe_inline"/>
</div>
<field name="date_value" />
</group>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp