Skip to content

Commit

Permalink
Merge pull request #665 from gisce/bugfix/61328_error_context_not_found
Browse files Browse the repository at this point in the history
FIX llamada a funcion para inactivos usando context A2
  • Loading branch information
tinogis authored Jul 18, 2024
2 parents 59d695d + 1dc0c2b commit 058899b
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 058899b

Please sign in to comment.