bank-payment/account_payment_partner/reports/account_invoice_report.py
2024-05-03 10:36:50 +02:00

19 lines
513 B
Python

# 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