bank-payment/account_payment_partner/reports/account_invoice_report.py

19 lines
513 B
Python
Raw Normal View History

2024-05-03 08:36:50 +00:00
# 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