mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-11-25 23:22:06 +00:00
19 lines
513 B
Python
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
|