mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
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:
committed by
Leonardo Pistone
parent
a7e7c796b2
commit
57921d44cf
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user