Rohan Nayani(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-847867-ron into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #847867 in OpenERP Addons: "[trunk][purchase]Seller quantity for 
procurements uses default UOM"
  https://bugs.launchpad.net/openobject-addons/+bug/847867

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-847867-ron/+merge/75978
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-847867-ron/+merge/75978
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-847867-ron.
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py	2011-09-18 14:01:59 +0000
+++ purchase/purchase.py	2011-09-19 09:02:27 +0000
@@ -804,7 +804,6 @@
         for procurement in self.browse(cr, uid, ids, context=context):
             res_id = procurement.move_id.id
             partner = procurement.product_id.seller_id # Taken Main Supplier of Product of Procurement.
-            seller_qty = procurement.product_id.seller_qty
             seller_delay = int(procurement.product_id.seller_delay)
             partner_id = partner.id
             address_id = partner_obj.address_get(cr, uid, [partner_id], ['delivery'])['delivery']
@@ -812,6 +811,7 @@
 
             uom_id = procurement.product_id.uom_po_id.id
 
+            seller_qty = uom_obj._compute_qty(cr, uid, procurement.product_id.uom_id.id, procurement.product_id.seller_qty, uom_id)
             qty = uom_obj._compute_qty(cr, uid, procurement.product_uom.id, procurement.product_qty, uom_id)
             if seller_qty:
                 qty = max(qty,seller_qty)

_______________________________________________
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

Reply via email to