15 lines
453 B
Python
15 lines
453 B
Python
# Copyright 2023 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 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']['order'] = "sequence, id"
|
|
return res
|