15 lines
466 B
Python
15 lines
466 B
Python
# Copyright 2022 Akretion France (http://www.akretion.com/)
|
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import models
|
|
|
|
|
|
class PosSession(models.Model):
|
|
_inherit = "pos.session"
|
|
|
|
def _loader_params_pos_payment_method(self):
|
|
res = super()._loader_params_pos_payment_method()
|
|
res['search_params']['fields'].append('identify_customer')
|
|
return res
|