mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-11-17 03:22:03 +00:00
22ee40100d
[FIX] l10n_ch_zip [ADD] Added latest OCA Modules [REMOVE] Removed QR modules which are not required anymore
16 lines
504 B
Python
16 lines
504 B
Python
# Copyright 2021 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_paynet_other_reference(self):
|
|
ref = super().get_paynet_other_reference()
|
|
for order in self.invoice_line_ids.sale_line_ids.mapped("order_id"):
|
|
if order.customer_order_free_ref:
|
|
ref.append({"type": "CR", "no": order.customer_order_free_ref})
|
|
return ref
|