<reponame>Saran440/nxpo<filename>odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class BudgetMonitorRevisionReport(models.Model):
    _inherit = "budget.monitor.revision.report"

    project_id = fields.Many2one(comodel_name="res.project")

    def _select_budget(self):
        select_budget_query = super()._select_budget()
        select_budget_query = ",".join([select_budget_query, "aa.project_id"])
        return select_budget_query

# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class BudgetMonitorRevisionReport(models.Model):
    _inherit = "budget.monitor.revision.report"

    project_id = fields.Many2one(comodel_name="res.project")

    def _select_budget(self):
        select_budget_query = super()._select_budget()
        select_budget_query = ",".join([select_budget_query, "aa.project_id"])
        return select_budget_query
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).