19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:07 +01:00
parent ba20ce7443
commit 768b70e05e
2357 changed files with 1057103 additions and 712486 deletions

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
from odoo import api, fields, models
class AccountIncoterms(models.Model):
@ -17,3 +17,8 @@ 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.")
@api.depends('code')
def _compute_display_name(self):
for incoterm in self:
incoterm.display_name = '%s%s' % (incoterm.code and '[%s] ' % incoterm.code or '', incoterm.name)