Hardik Ansodariya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-383606-han into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
  Hardik Ansodariya (OpenERP) (han-tinyerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-383606-han/+merge/93832

Hello,

I have fixed the issue of flooring depot with rounding the value.

Please review it.

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-383606-han/+merge/93832
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-383606-han.
=== modified file 'stock/wizard/stock_partial_picking.py'
--- stock/wizard/stock_partial_picking.py	2012-02-16 15:33:12 +0000
+++ stock/wizard/stock_partial_picking.py	2012-02-20 13:05:57 +0000
@@ -164,9 +164,9 @@
 
                 calc_qty = uom_obj._compute_qty(cr, uid, move.product_uom.id, \
                                     move.quantity, move.move_id.product_uom.id)
-
                 #Adding a check whether any move line contains exceeding qty to original moveline
-                if calc_qty > move.move_id.product_qty:
+                product_uom = self.pool.get('decimal.precision').precision_get(cr, uid, 'Product UOM')
+                if round(calc_qty, product_uom) > round(move.move_id.product_qty, product_uom):
                     precision = '%0.' + str(dp.get_precision('Product UoM')(cr)[1] or 0) + 'f'
                     raise osv.except_osv(_('Processing Error'),
                     _('Processing quantity %s %s for %s is larger than the available quantity %s %s !')\

_______________________________________________
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