[FIX] point_of_sale: load archived payment methods

Before this commit, if one of the used payment methods was archived,
it would raise an error when loading the paid orders.

The solution is to load archived payment methods.

opw-2892321

closes odoo/odoo#94687

X-original-commit: 5c7b6bee2bdcaba0a2cde3d22d472e30640d9f09
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
pedrambiria
2022-06-29 12:19:33 +02:00
parent cc9ca66c95
commit f15902fea3
+1 -1
View File
@@ -1922,7 +1922,7 @@ class PosSession(models.Model):
def _loader_params_pos_payment_method(self):
return {
'search_params': {
'domain': [],
'domain': ['|', ('active', '=', False), ('active', '=', True)],
'fields': ['name', 'is_cash_count', 'use_payment_terminal', 'split_transactions', 'type'],
'order': 'is_cash_count desc, id',
},