mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-11-17 03:22:03 +00:00
15 lines
390 B
Python
15 lines
390 B
Python
|
# Copyright 2020 Camptocamp SA
|
||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||
|
|
||
|
from flectra import models
|
||
|
|
||
|
|
||
|
class AccountMove(models.Model):
|
||
|
_inherit = "account.move"
|
||
|
|
||
|
def _get_isrb_id_number(self):
|
||
|
"""Return ISR-B Customer ID"""
|
||
|
self.ensure_one()
|
||
|
partner_bank = self.partner_bank_id
|
||
|
return partner_bank.l10n_ch_isrb_id_number or ""
|