summaryrefslogtreecommitdiff
path: root/addons/account_check_printing/models/res_config_settings.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/account_check_printing/models/res_config_settings.py
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/account_check_printing/models/res_config_settings.py')
-rw-r--r--addons/account_check_printing/models/res_config_settings.py47
1 files changed, 47 insertions, 0 deletions
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."
+ )