[IMP] typo improved comapre_qty -> compare_qty
bzr revid: han@tinyerp.com-20111229044321-xak5mb11qltjjzq5
This commit is contained in:
+2
-2
@@ -1233,8 +1233,8 @@ class sale_order_line(osv.osv):
|
||||
|
||||
if not uom2:
|
||||
uom2 = product_obj.uom_id
|
||||
comapre_qty = float_compare(product_obj.virtual_available * uom2.factor,qty * product_obj.uom_id.factor, precision_rounding=product_obj.uom_id.rounding)
|
||||
if (product_obj.type=='product') and int(comapre_qty) == -1 \
|
||||
compare_qty = float_compare(product_obj.virtual_available * uom2.factor,qty * product_obj.uom_id.factor, precision_rounding=product_obj.uom_id.rounding)
|
||||
if (product_obj.type=='product') and int(compare_qty) == -1 \
|
||||
and (product_obj.procure_method=='make_to_stock'):
|
||||
warn_msg = _('You plan to sell %.2f %s but you only have %.2f %s available !\nThe real stock is %.2f %s. (without reservations)') % \
|
||||
(qty, uom2 and uom2.name or product_obj.uom_id.name,
|
||||
|
||||
Reference in New Issue
Block a user