From f15902fea35e5d3b044b917476f386e07ca344c5 Mon Sep 17 00:00:00 2001 From: pedrambiria Date: Mon, 27 Jun 2022 08:13:18 +0000 Subject: [PATCH] [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) --- addons/point_of_sale/models/pos_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/models/pos_session.py b/addons/point_of_sale/models/pos_session.py index 24c89902347..0107e1a8446 100644 --- a/addons/point_of_sale/models/pos_session.py +++ b/addons/point_of_sale/models/pos_session.py @@ -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', },