From 57921d44cfbf39f081587d54d08d87018d556c82 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Wed, 10 Sep 2014 20:08:18 +0200 Subject: [PATCH] fix name formating. str.format is recommended for python 3 not for 2.6. setting base string as unicode didn't solve it --- stock_reserve_sale/wizard/sale_stock_reserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_reserve_sale/wizard/sale_stock_reserve.py b/stock_reserve_sale/wizard/sale_stock_reserve.py index bd51daad4..af8130f1b 100644 --- a/stock_reserve_sale/wizard/sale_stock_reserve.py +++ b/stock_reserve_sale/wizard/sale_stock_reserve.py @@ -59,7 +59,7 @@ class SaleStockReserve(models.TransientModel): 'product_uom': line.product_uom.id, 'product_uom_qty': line.product_uom_qty, 'date_validity': self.date_validity, - 'name': "{} ({})".format(line.order_id.name, line.name), + 'name': "%s (%s)" % (line.order_id.name, line.name), 'location_id': self.location_id.id, 'location_dest_id': self.location_dest_id.id, 'note': self.note,