mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-24 21:02:07 +02:00
Initial commit: OCA Financial packages (186 packages)
This commit is contained in:
commit
3e0e8473fb
8757 changed files with 947473 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
from . import account_group
|
||||
from . import account_tag
|
||||
from . import account_tax_group
|
||||
from . import res_config_settings
|
||||
|
|
@ -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",
|
||||
)
|
||||
|
|
@ -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",
|
||||
)
|
||||
|
|
@ -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",
|
||||
)
|
||||
|
|
@ -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
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue