diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 26184971cf4..fccebe9e9df 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -738,7 +738,7 @@ class purchase_order(osv.osv): price_unit = self.pool.get('res.currency').compute(cr, uid, order.currency_id.id, order.company_id.currency_id.id, price_unit, round=False, context=context) res = [] if order.location_id.usage == 'customer': - name = order_line.product_id.name + name = order_line.product_id.with_context(dict(context or {}, lang=order.dest_address_id.lang)).name else: name = order_line.name or '' move_template = { diff --git a/addons/stock/stock.py b/addons/stock/stock.py index be43f04d0ce..1f68efe9e08 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -3717,9 +3717,13 @@ class stock_warehouse(osv.osv): self._handle_renaming(cr, uid, warehouse, name, vals.get('code', warehouse.code), context=context_with_inactive) if warehouse.in_type_id: seq_obj.write(cr, uid, warehouse.in_type_id.sequence_id.id, {'name': name + _(' Sequence in'), 'prefix': vals.get('code', warehouse.code) + '\IN\\'}, context=context) + if warehouse.out_type_id: seq_obj.write(cr, uid, warehouse.out_type_id.sequence_id.id, {'name': name + _(' Sequence out'), 'prefix': vals.get('code', warehouse.code) + '\OUT\\'}, context=context) + if warehouse.pack_type_id: seq_obj.write(cr, uid, warehouse.pack_type_id.sequence_id.id, {'name': name + _(' Sequence packing'), 'prefix': vals.get('code', warehouse.code) + '\PACK\\'}, context=context) + if warehouse.pick_type_id: seq_obj.write(cr, uid, warehouse.pick_type_id.sequence_id.id, {'name': name + _(' Sequence picking'), 'prefix': vals.get('code', warehouse.code) + '\PICK\\'}, context=context) + if warehouse.int_type_id: seq_obj.write(cr, uid, warehouse.int_type_id.sequence_id.id, {'name': name + _(' Sequence internal'), 'prefix': vals.get('code', warehouse.code) + '\INT\\'}, context=context) if vals.get('resupply_wh_ids') and not vals.get('resupply_route_ids'): for cmd in vals.get('resupply_wh_ids'):