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)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-383606-han/+merge/93337
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/93337
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-13 14:27:20 +0000
+++ stock/wizard/stock_partial_picking.py 2012-02-16 06:16:18 +0000
@@ -164,9 +164,10 @@
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:
+
+ if round(calc_qty, self.pool.get('decimal.precision').precision_get(cr, uid, 'Product UOM')) > \
+ round(move.move_id.product_qty, self.pool.get('decimal.precision').precision_get(cr, uid, '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