Improvement for incoterm

This commit is contained in:
Alexis de Lattre
2019-07-17 09:46:39 +02:00
parent 682f85b2d7
commit 5a72d2b1b9
2 changed files with 17 additions and 0 deletions

View File

@@ -626,3 +626,14 @@ class AccountReconcileModel(models.Model):
# Because it's much better to have the bank statement line label as
# label of the counter-part move line, then the label of the button
assert True # Stupid line of code just to have something...
class AccountIncoterms(models.Model):
_inherit = 'account.incoterms'
@api.depends('code', 'name')
def name_get(self):
res = []
for rec in self:
res.append((rec.id, '[%s] %s' % (rec.code, rec.name)))
return res