account-closing/account_cutoff_accrual_subscription/models/account_cutoff_line.py

14 lines
435 B
Python
Raw Permalink Normal View History

2024-05-03 08:29:54 +00:00
# Copyright 2019-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from flectra import fields, models
class AccountCutoffLine(models.Model):
_inherit = "account.cutoff.line"
subscription_id = fields.Many2one(
"account.cutoff.accrual.subscription", ondelete="restrict", check_company=True
)