* localized checks layout of US and CA introduced in enterprise * account settings now install account_check_printing instead of the US checks layout Wsa PR #18791. Was task 33298
24 lines
1.9 KiB
Python
24 lines
1.9 KiB
Python
# -*- 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'
|
|
|
|
country_code = fields.Char(string="Company Country code", related='company_id.country_id.code', readonly=True)
|
|
account_check_printing_layout = fields.Selection(related='company_id.account_check_printing_layout', string="Check Layout",
|
|
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",
|
|
help="This option allows you to print the date label on the check as per CPA. 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',
|
|
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',
|
|
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',
|
|
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',
|
|
help="Adjust the margins of generated checks to make it fit your printer's settings.")
|