2024-05-03 08:57:01 +00:00
|
|
|
# Copyright 2017-2020 ACSONE SA/NV
|
|
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
|
|
|
|
from flectra import fields, models
|
|
|
|
|
|
|
|
|
|
|
|
class MisBudgetByAccount(models.Model):
|
|
|
|
_name = "mis.budget.by.account"
|
|
|
|
_description = "MIS Budget by Account"
|
|
|
|
_inherit = ["mis.budget.abstract", "mail.thread"]
|
|
|
|
|
|
|
|
item_ids = fields.One2many(
|
|
|
|
comodel_name="mis.budget.by.account.item", inverse_name="budget_id", copy=True
|
|
|
|
)
|
2024-11-08 07:12:33 +00:00
|
|
|
company_id = fields.Many2one(required=False)
|
2024-05-03 08:57:01 +00:00
|
|
|
allow_items_overlap = fields.Boolean(
|
|
|
|
help="If checked, overlap between budget items is allowed"
|
|
|
|
)
|