From 4d52d54460204246de192efc29a054acd3dc45dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt?= Date: Tue, 2 Sep 2025 17:47:07 +0200 Subject: [PATCH] fix missing import --- sale_agent/models/account_invoice_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())