mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-22 21:52:04 +00:00
32 lines
1.3 KiB
Python
32 lines
1.3 KiB
Python
|
# Copyright 2013-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_journal_id
|
||
|
# because default_ is a special prefix
|
||
|
dft_cutoff_journal_id = fields.Many2one(
|
||
|
related="company_id.default_cutoff_journal_id", readonly=False
|
||
|
)
|
||
|
dft_cutoff_move_partner = fields.Boolean(
|
||
|
related="company_id.default_cutoff_move_partner", readonly=False
|
||
|
)
|
||
|
accrual_taxes = fields.Boolean(related="company_id.accrual_taxes", readonly=False)
|
||
|
dft_accrued_revenue_account_id = fields.Many2one(
|
||
|
related="company_id.default_accrued_revenue_account_id", readonly=False
|
||
|
)
|
||
|
dft_accrued_expense_account_id = fields.Many2one(
|
||
|
related="company_id.default_accrued_expense_account_id", readonly=False
|
||
|
)
|
||
|
dft_prepaid_revenue_account_id = fields.Many2one(
|
||
|
related="company_id.default_prepaid_revenue_account_id", readonly=False
|
||
|
)
|
||
|
dft_prepaid_expense_account_id = fields.Many2one(
|
||
|
related="company_id.default_prepaid_expense_account_id", readonly=False
|
||
|
)
|