Files
account-financial-tools/account_sequence_option/models/sequence_option.py
2024-06-11 10:18:43 +07:00

14 lines
378 B
Python

# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class IrSequenceOption(models.Model):
_inherit = "ir.sequence.option"
model = fields.Selection(
selection_add=[("account.move", "account.move")],
ondelete={"account.move": "cascade"},
)