mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-12-24 05:11:45 +00:00
18 lines
542 B
Python
18 lines
542 B
Python
# Copyright 2021 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from flectra import api, fields, models
|
|
|
|
|
|
class SaleOrder(models.Model):
|
|
|
|
_inherit = "sale.order"
|
|
|
|
paynet_client_order_ref = fields.Char(compute="_compute_paynet_client_order_ref")
|
|
|
|
@api.depends("client_order_ref")
|
|
def _compute_paynet_client_order_ref(self):
|
|
"""Compute the customer reference order to allow for glue module."""
|
|
for order in self:
|
|
order.paynet_client_order_ref = order.client_order_ref
|