[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:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user