mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-24 06:42:05 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue