mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-11-17 03:22:03 +00:00
26 lines
763 B
Python
26 lines
763 B
Python
# copyright 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from flectra import fields, models
|
|
|
|
|
|
class AccountPaymentMethod(models.Model):
|
|
_inherit = "account.payment.method"
|
|
|
|
pain_version = fields.Selection(
|
|
selection_add=[
|
|
(
|
|
"pain.001.001.03.ch.02",
|
|
"pain.001.001.03.ch.02 (credit transfer in Switzerland)",
|
|
),
|
|
]
|
|
)
|
|
|
|
def get_xsd_file_path(self):
|
|
self.ensure_one()
|
|
painv = self.pain_version
|
|
if painv == "pain.001.001.03.ch.02":
|
|
path = "l10n_ch_pain_credit_transfer/data/%s.xsd" % painv
|
|
return path
|
|
return super().get_xsd_file_path()
|