Skip to content

Commit

Permalink
FIX llamada a funcion para inactivos usando context A2
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosfvilaboa committed Jul 18, 2024
1 parent 59d695d commit 1dc0c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcnmc/cir_8_2021/FA2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 1dc0c2b

Please sign in to comment.