fix missing import
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from odoo import fields, models
|
from odoo import fields, models
|
||||||
|
from odoo.tools import SQL
|
||||||
|
|
||||||
|
|
||||||
class AccountInvoiceReport(models.Model):
|
class AccountInvoiceReport(models.Model):
|
||||||
@@ -11,4 +12,4 @@ class AccountInvoiceReport(models.Model):
|
|||||||
invoice_agent_id = fields.Many2one("res.partner", string="Agent", readonly=True)
|
invoice_agent_id = fields.Many2one("res.partner", string="Agent", readonly=True)
|
||||||
|
|
||||||
def _select(self):
|
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())
|
||||||
|
|||||||
Reference in New Issue
Block a user