27 lines
860 B
Python
27 lines
860 B
Python
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import fields, models
|
|
|
|
class ResCompany(models.Model):
|
|
_inherit = "res.company"
|
|
|
|
is_allowed_null_value_tax_receipt = fields.Boolean(
|
|
string="Allowed null value tax receipt",
|
|
default=False,
|
|
)
|
|
in_kind_donations_in_accounting = fields.Boolean(
|
|
string="Allow accounting moves creation for donation using special accounts 86 and 87",
|
|
default=False,
|
|
)
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = "res.config.settings"
|
|
|
|
is_allowed_null_value_tax_receipt = fields.Boolean(
|
|
related="company_id.is_allowed_null_value_tax_receipt",
|
|
readonly=False,
|
|
)
|
|
in_kind_donations_in_accounting = fields.Boolean(
|
|
related="company_id.in_kind_donations_in_accounting",
|
|
readonly=False,
|
|
) |