You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.8 KiB
86 lines
2.8 KiB
# Copyright 2019 Coop IT Easy SCRL fs
|
|
# Houssine Bakkali <houssine@coopiteasy.be>
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResCompany(models.Model):
|
|
_inherit = "res.company"
|
|
|
|
awaiting_loan_payment_account = fields.Many2one(
|
|
"account.account",
|
|
company_dependent=True,
|
|
string="Awaiting Loan Payment Account",
|
|
domain=[
|
|
("internal_type", "=", "receivable"),
|
|
("deprecated", "=", False),
|
|
],
|
|
help="This account serve to track awaiting payment."
|
|
" It only serve a bank reconciliation purpose to register the awaiting"
|
|
" loan payment as received/paid",
|
|
required=True,
|
|
)
|
|
loaner_account = fields.Many2one(
|
|
"account.account",
|
|
company_dependent=True,
|
|
string="Loaner Account",
|
|
help="This account will be the default one as the"
|
|
" receivable account for the cooperators",
|
|
required=True,
|
|
)
|
|
expense_account = fields.Many2one(
|
|
"account.account",
|
|
company_dependent=True,
|
|
string="Expense Account",
|
|
help="This account is used to register the loan debt due for more"
|
|
" than one year",
|
|
required=True,
|
|
)
|
|
debt_long_term_account = fields.Many2one(
|
|
"account.account",
|
|
company_dependent=True,
|
|
string="Long Term Debt Account",
|
|
help="This account is used to register the loan debt due for more"
|
|
" than one year",
|
|
required=True,
|
|
)
|
|
debt_short_term_account = fields.Many2one(
|
|
"account.account",
|
|
company_dependent=True,
|
|
string="Short Term Debt Account",
|
|
help="This account is used to register the loan debt due for the"
|
|
" current fiscal year",
|
|
required=True,
|
|
old_name="debt_short_term_account",
|
|
)
|
|
interest_account = fields.Many2one(
|
|
"account.account",
|
|
company_dependent=True,
|
|
string="Interest Account",
|
|
help="This account is used to register the due loan interest",
|
|
required=True,
|
|
)
|
|
tax_account = fields.Many2one(
|
|
"account.account",
|
|
company_dependent=True,
|
|
string="Tax Account",
|
|
help="This account is used to register the tax to pay"
|
|
" to the tax administration",
|
|
required=True,
|
|
)
|
|
awaiting_loan_payment_journal = fields.Many2one(
|
|
"account.journal",
|
|
string="Awaiting loan payment journal",
|
|
help="This journal will be the default one as the"
|
|
" to track the payment from the loaners",
|
|
required=True,
|
|
)
|
|
loan_journal = fields.Many2one(
|
|
"account.journal",
|
|
string="Loan journal",
|
|
help="This journal will be the one used to register all"
|
|
" the loan account move lines",
|
|
required=True,
|
|
)
|