X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=addons%2Fsale_stock%2Fsale_stock.py;fp=addons%2Fsale_stock%2Fsale_stock.py;h=89b6c3680f68ee337f8000212a54ddbb276b792e;hb=dc560a4dd0b6c109eede6b30c02ae4b34ca77c38;hp=2375063931f4ac95be9f4b6ecb3f9cd11dba422a;hpb=b5164698f255633e68e6c3b75f30eae8492326dc;p=odoo%2Fodoo.git diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py index 2375063..89b6c36 100644 --- a/addons/sale_stock/sale_stock.py +++ b/addons/sale_stock/sale_stock.py @@ -263,15 +263,15 @@ class sale_order_line(osv.osv): q = product_uom_obj._compute_qty(cr, uid, uom, pack.qty, default_uom) # qty = qty - qty % q + q if qty and (q and not (qty % q) == 0): - ean = pack.ean or _('(n/a)') + barcode = pack.barcode or _('(n/a)') qty_pack = pack.qty type_ul = pack.ul if not warning_msgs: warn_msg = _("You selected a quantity of %d Units.\n" "But it's not compatible with the selected packaging.\n" "Here is a proposition of quantities according to the packaging:\n" - "EAN: %s Quantity: %s Type of ul: %s") % \ - (qty, ean, qty_pack, type_ul.name) + "Barcode: %s Quantity: %s Type of ul: %s") % \ + (qty, barcode, qty_pack, type_ul.name) warning_msgs += _("Picking Information ! : ") + warn_msg + "\n\n" warning = { 'title': _('Configuration Error!'),