pos_usability : finalize order by sequence on pos.payment.method

This commit is contained in:
Alexis de Lattre
2023-10-23 15:22:36 +02:00
parent e36f88e23a
commit 983a25367f
2 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
from . import product
from . import pos_category
from . import pos_payment_method
from . import pos_session

View File

@@ -0,0 +1,14 @@
# 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