[IMP] account: display code and name on Incoterms
Display incoterm names the same way we display products with their `internal_reference`. Part of task-3218314 Part-of: odoo/odoo#119381
This commit is contained in:
@@ -17,3 +17,7 @@ class AccountIncoterms(models.Model):
|
||||
active = fields.Boolean(
|
||||
'Active', default=True,
|
||||
help="By unchecking the active field, you may hide an INCOTERM you will not use.")
|
||||
|
||||
def name_get(self):
|
||||
return [(incoterm.id, '%s%s' % (incoterm.code and '[%s] ' % incoterm.code or '', incoterm.name))
|
||||
for incoterm in self]
|
||||
|
||||
Reference in New Issue
Block a user