diff --git a/addons/account/models/account_incoterms.py b/addons/account/models/account_incoterms.py index a8015b106e4..905ae7377e7 100644 --- a/addons/account/models/account_incoterms.py +++ b/addons/account/models/account_incoterms.py @@ -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]