mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-23 06:02:03 +00:00
53 lines
1.9 KiB
Python
53 lines
1.9 KiB
Python
|
# Copyright 2013-2021 Akretion (http://www.akretion.com)
|
||
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||
|
# Copyright 2017-2021 ACSONE SA/NV
|
||
|
# Copyright 2018-2021 Jacques-Etienne Baudoux (BCIM sprl) <je@bcim.be>
|
||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
||
|
|
||
|
from flectra import fields, models
|
||
|
|
||
|
|
||
|
class ResCompany(models.Model):
|
||
|
_inherit = "res.company"
|
||
|
|
||
|
default_cutoff_journal_id = fields.Many2one(
|
||
|
"account.journal",
|
||
|
string="Default Cut-off Journal",
|
||
|
check_company=True,
|
||
|
)
|
||
|
default_cutoff_move_partner = fields.Boolean(
|
||
|
string="Partner on Journal Items by Default"
|
||
|
)
|
||
|
accrual_taxes = fields.Boolean(string="Accrual On Taxes", default=True)
|
||
|
post_cutoff_move = fields.Boolean(string="Post Cut-off Journal Entry")
|
||
|
default_accrued_revenue_account_id = fields.Many2one(
|
||
|
comodel_name="account.account",
|
||
|
string="Default Account for Accrued Revenues",
|
||
|
check_company=True,
|
||
|
)
|
||
|
default_accrued_expense_account_id = fields.Many2one(
|
||
|
comodel_name="account.account",
|
||
|
string="Default Account for Accrued Expenses",
|
||
|
check_company=True,
|
||
|
)
|
||
|
default_accrued_revenue_tax_account_id = fields.Many2one(
|
||
|
comodel_name="account.account",
|
||
|
string="Default Tax Account for Accrued Revenue",
|
||
|
check_company=True,
|
||
|
)
|
||
|
default_accrued_expense_tax_account_id = fields.Many2one(
|
||
|
comodel_name="account.account",
|
||
|
string="Default Tax Account for Accrued Expense",
|
||
|
check_company=True,
|
||
|
)
|
||
|
default_prepaid_revenue_account_id = fields.Many2one(
|
||
|
"account.account",
|
||
|
string="Default Account for Prepaid Revenue",
|
||
|
check_company=True,
|
||
|
)
|
||
|
default_prepaid_expense_account_id = fields.Many2one(
|
||
|
"account.account",
|
||
|
string="Default Account for Prepaid Expense",
|
||
|
check_company=True,
|
||
|
)
|