l10n-switzerland-flectra/ebill_paynet_customer_free_ref/models/sale_order.py
Raphael Ritter 22ee40100d [FIX] Multiple modules which had wrong dependencies
[FIX] l10n_ch_zip
[ADD] Added latest OCA Modules
[REMOVE] Removed QR modules which are not required anymore
2021-11-17 14:48:42 +01:00

15 lines
380 B
Python

# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from flectra import api, models
class SaleOrder(models.Model):
_inherit = "sale.order"
@api.depends("customer_order_number")
def _compute_paynet_client_order_ref(self):
for order in self:
order.paynet_client_order_ref = order.customer_order_number