From 1dc0c2b3f6933f37e64f29c84610b6f8d0aeb7f4 Mon Sep 17 00:00:00 2001 From: Vilaboa Date: Thu, 18 Jul 2024 13:25:14 +0200 Subject: [PATCH] FIX llamada a funcion para inactivos usando context A2 --- libcnmc/cir_8_2021/FA2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcnmc/cir_8_2021/FA2.py b/libcnmc/cir_8_2021/FA2.py index 14dc555f..a98022d5 100644 --- a/libcnmc/cir_8_2021/FA2.py +++ b/libcnmc/cir_8_2021/FA2.py @@ -51,10 +51,10 @@ def get_sequence(self): ('data_alta', '<', data_pm), ('collectiu', '=', True) ] autoconsum_ids = O.GiscedataAutoconsum.search( - search_params_ac, context={'active_test': False}) + search_params_ac, 0, 0, False, {"active_test": False}) search_params_gen = [('autoconsum_id', 'in', autoconsum_ids)] generador_ids = O.GiscedataAutoconsumGenerador.search( - search_params_gen, context={'active_test': False}) + search_params_gen, 0, 0, False, {"active_test": False}) for elem in range(0, len(autoconsum_ids)): generador_ids[elem] = 'gac.{}'.format(generador_ids[elem])