mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-11-16 19:12:04 +00:00
18 lines
539 B
Python
18 lines
539 B
Python
# Copyright 2021 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo 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
|