mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-12-25 05:41:45 +00:00
15 lines
380 B
Python
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
|