Vishal Parmar(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-958897-vpa into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #958897 in OpenERP Addons: "[6.1] Purchase/Sale Order does not use
product's non-reference Unit-type Unit of Measure"
https://bugs.launchpad.net/openobject-addons/+bug/958897
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-958897-vpa/+merge/102676
Hello,
Purchase unit of measure set on purchase order line.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-958897-vpa/+merge/102676
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-958897-vpa.
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py 2012-04-19 07:53:54 +0000
+++ purchase/purchase.py 2012-04-19 11:34:18 +0000
@@ -826,10 +826,8 @@
if product.uom_id.category_id.id != product_uom.browse(cr, uid, uom_id, context=context).category_id.id:
res['warning'] = {'title': _('Warning'), 'message': _('Selected UOM does not belong to the same category as the product UOM')}
- uom_id = product_uom_po_id
-
+ uom_id = product_uom_po_id
res['value'].update({'product_uom': uom_id})
-
# - determine product_qty and date_planned based on seller info
if not date_order:
date_order = fields.date.context_today(cr,uid,context=context)
_______________________________________________
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