fix name formating. str.format is recommended for python 3 not for 2.6. setting base string as unicode didn't solve it

This commit is contained in:
Yannick Vaucher
2014-09-10 20:08:18 +02:00
committed by Leonardo Pistone
parent a7e7c796b2
commit 57921d44cf

View File

@@ -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,