mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
account_payment_sale: payment_mode_id in sale.report
This commit is contained in:
committed by
Atchuthan Ubendran
parent
e7b4edbe58
commit
2e2d1d8282
@@ -1 +1,2 @@
|
||||
from . import sale_order
|
||||
from . import sale_report
|
||||
|
||||
20
account_payment_sale/models/sale_report.py
Normal file
20
account_payment_sale/models/sale_report.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Copyright 2021-2022 Akretion France (http://www.akretion.com)
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class SaleReport(models.Model):
|
||||
_inherit = "sale.report"
|
||||
|
||||
payment_mode_id = fields.Many2one(
|
||||
"account.payment.mode",
|
||||
string="Payment Mode",
|
||||
readonly=True,
|
||||
)
|
||||
|
||||
def _select_additional_fields(self):
|
||||
res = super()._select_additional_fields()
|
||||
res["payment_mode_id"] = "s.payment_mode_id"
|
||||
return res
|
||||
Reference in New Issue
Block a user