account-closing/account_cutoff_picking/wizards/res_config_settings.py

17 lines
575 B
Python
Raw Normal View History

2024-05-03 08:29:54 +00:00
# Copyright 2020-2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from flectra import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
# I can't name it default_cutoff_accrual_picking_interval_days
# because 'default_' is a special prefix
dft_cutoff_picking_interval_days = fields.Integer(
related="company_id.default_cutoff_picking_interval_days",
readonly=False,
)