# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from flectra import fields, models class AccountInvoiceReport(models.Model): _inherit = "account.invoice.report" payment_mode_id = fields.Many2one( comodel_name="account.payment.mode", string="Payment mode", readonly=True, ) def _select(self): select_str = super()._select() return "%s, move.payment_mode_id AS payment_mode_id" % select_str