Initial commit: OCA Financial packages (186 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:04 +02:00
commit 3e0e8473fb
8757 changed files with 947473 additions and 0 deletions

View file

@ -0,0 +1,4 @@
from . import account_group
from . import account_tag
from . import account_tax_group
from . import res_config_settings

View file

@ -0,0 +1,14 @@
# Copyright 2018 FOREST AND BIOMASS ROMANIA SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountGroup(models.Model):
_inherit = "account.group"
account_ids = fields.One2many(
comodel_name="account.account",
inverse_name="group_id",
string="Accounts",
)

View file

@ -0,0 +1,14 @@
# Copyright 2018 FOREST AND BIOMASS ROMANIA SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountAccountTag(models.Model):
_inherit = "account.account.tag"
account_ids = fields.Many2many(
comodel_name="account.account",
relation="account_account_account_tag",
string="Accounts",
)

View file

@ -0,0 +1,14 @@
# Copyright 2018 FOREST AND BIOMASS ROMANIA SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountTaxGroup(models.Model):
_inherit = "account.tax.group"
tax_ids = fields.One2many(
comodel_name="account.tax",
inverse_name="tax_group_id",
string="Taxes",
)

View file

@ -0,0 +1,23 @@
# Copyright 2021 Opener B.V. <stefan@opener.amsterdam>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
anglo_saxon_accounting = fields.Boolean(
related="company_id.anglo_saxon_accounting",
readonly=False,
string="Use anglo-saxon accounting",
help=(
"Record the cost of a good as an expense when this good is "
"invoiced to a final customer."
),
)
fiscalyear_last_day = fields.Integer(
related="company_id.fiscalyear_last_day", readonly=False
)
fiscalyear_last_month = fields.Selection(
related="company_id.fiscalyear_last_month", readonly=False
)