[14.0][ADD] account_sequence_option

This commit is contained in:
Kitti U
2021-12-16 16:47:14 +07:00
committed by Saran440
parent d9260bf421
commit fc3543f1fe
12 changed files with 290 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# 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"},
)