diff --git a/sale_agent/models/account_invoice_report.py b/sale_agent/models/account_invoice_report.py index e38c568..06dd6f6 100644 --- a/sale_agent/models/account_invoice_report.py +++ b/sale_agent/models/account_invoice_report.py @@ -3,6 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models +from odoo.tools import SQL class AccountInvoiceReport(models.Model): @@ -11,4 +12,4 @@ class AccountInvoiceReport(models.Model): invoice_agent_id = fields.Many2one("res.partner", string="Agent", readonly=True) def _select(self): - return SQL(", move.invoice_agent_id AS invoice_agent_id", super()._select()) + return SQL("%s, move.invoice_agent_id AS invoice_agent_id", super()._select())