From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- .../models/res_config_settings.py | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 addons/account_check_printing/models/res_config_settings.py (limited to 'addons/account_check_printing/models/res_config_settings.py') diff --git a/addons/account_check_printing/models/res_config_settings.py b/addons/account_check_printing/models/res_config_settings.py new file mode 100644 index 00000000..5716e128 --- /dev/null +++ b/addons/account_check_printing/models/res_config_settings.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = 'res.config.settings' + + account_check_printing_layout = fields.Selection( + related='company_id.account_check_printing_layout', + string="Check Layout", + readonly=False, + help="Select the format corresponding to the check paper you will be printing your checks on.\n" + "In order to disable the printing feature, select 'None'." + ) + account_check_printing_date_label = fields.Boolean( + related='company_id.account_check_printing_date_label', + string="Print Date Label", + readonly=False, + help="This option allows you to print the date label on the check as per CPA.\n" + "Disable this if your pre-printed check includes the date label." + ) + account_check_printing_multi_stub = fields.Boolean( + related='company_id.account_check_printing_multi_stub', + string='Multi-Pages Check Stub', + readonly=False, + help="This option allows you to print check details (stub) on multiple pages if they don't fit on a single page." + ) + account_check_printing_margin_top = fields.Float( + related='company_id.account_check_printing_margin_top', + string='Check Top Margin', + readonly=False, + help="Adjust the margins of generated checks to make it fit your printer's settings." + ) + account_check_printing_margin_left = fields.Float( + related='company_id.account_check_printing_margin_left', + string='Check Left Margin', + readonly=False, + help="Adjust the margins of generated checks to make it fit your printer's settings." + ) + account_check_printing_margin_right = fields.Float( + related='company_id.account_check_printing_margin_right', + string='Check Right Margin', + readonly=False, + help="Adjust the margins of generated checks to make it fit your printer's settings." + ) -- cgit v1.2.3