[FIX] sale: add the lambda to the default translated string

So it's just not loaded at the registry loading,
but each time it's called.
This commit is contained in:
Denis Ledoux
2016-03-10 12:05:18 +01:00
parent 668b4e1f62
commit e4232bfb20
+1 -1
View File
@@ -93,7 +93,7 @@ class SaleOrder(models.Model):
for order in self:
order.order_line._compute_tax_id()
name = fields.Char(string='Order Reference', required=True, copy=False, readonly=True, index=True, default=_('New'))
name = fields.Char(string='Order Reference', required=True, copy=False, readonly=True, index=True, defaultl=lambda: _('New'))
origin = fields.Char(string='Source Document', help="Reference of the document that generated this sales order request.")
client_order_ref = fields.Char(string='Customer Reference', copy=False)