Files
account-financial-tools/account_clearance_plan/models/res_config_settings.py
2020-04-23 12:27:02 +02:00

24 lines
807 B
Python

# Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
clearance_plan_journal_id = fields.Many2one(
comodel_name="account.journal",
related="company_id.clearance_plan_journal_id",
readonly=False,
string="Default Clearance Plan Journal",
help="The journal used by default on clearance plans.",
)
clearance_plan_move_line_name = fields.Char(
string="Default Clearance Plan Move Line Name",
help="Default name that will be given to new open "
"move lines created by clearance plans",
related="company_id.clearance_plan_move_line_name",
readonly=False,
)