Task 2005940
account:
* Use stored compute methods instead of default for
{out,in}bound_payment_method_ids
* Track is_move_sent in the chatter
* Split 'Invoices' and 'Bills' in the smart button of payment form
* Because account.payment.method can be shown on the res.partner form,
we need to relax the security level to readonly for all users
account_check_printing:
* Add the preferred payment method for partners, with a related on
account move allowing to do a group by and doing payments in batch
* Add a constraint to forbid twice the same check number in the same
journal
* The amount in words is now readonly to prevent typos and mismatches
with the amount in digits
* Remove the field `check_number_int`. The check number is kept as Char
so that '000012345' is not displayed (and printed) as '12,345' but it
is parsed so that comparison and incrementation are possible.
closes odoo/odoo#56179
Related: odoo/upgrade#1669
Related: odoo/enterprise#12527
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
48 lines
2.0 KiB
Python
48 lines
2.0 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'
|
|
|
|
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."
|
|
)
|