[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:
clesgow
2023-05-09 21:04:03 +02:00
parent 0aaea5648a
commit d22705b956
@@ -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]