1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_ca_check_printing/models/company.py
2024-12-10 09:04:09 +07:00

21 lines
915 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class Company(models.Model):
_inherit = "res.company"
# here, key has to be full xmlID(including the module name) of all the
# new report actions that you have defined for check layout
account_check_printing_layout = fields.Selection(selection_add=[
('l10n_ca_check_printing.action_print_check_top', 'Print Check (Top) - CA'),
('l10n_ca_check_printing.action_print_check_middle', 'Print Check (Middle) - CA'),
('l10n_ca_check_printing.action_print_check_bottom', 'Print Check (Bottom) - CA'),
], ondelete={
'l10n_ca_check_printing.action_print_check_top': 'set default',
'l10n_ca_check_printing.action_print_check_middle': 'set default',
'l10n_ca_check_printing.action_print_check_bottom': 'set default',
})