From c4b55e401c95ee71c6194b045867d38e5f2955cc Mon Sep 17 00:00:00 2001 From: pauboixsom Date: Tue, 27 Aug 2024 15:30:36 +0200 Subject: [PATCH] fix pending modocon or --- som_polissa_condicions_generals/models/report_backend_ccpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/som_polissa_condicions_generals/models/report_backend_ccpp.py b/som_polissa_condicions_generals/models/report_backend_ccpp.py index a0bb5bfc1..598335f1d 100644 --- a/som_polissa_condicions_generals/models/report_backend_ccpp.py +++ b/som_polissa_condicions_generals/models/report_backend_ccpp.py @@ -249,7 +249,7 @@ def get_prices_data(self, cursor, uid, pol, context=None): # noqa: C901 ultima_modcon.mode_facturacio == 'index' modcon_pendent_periodes = ultima_modcon.state == 'pendent' and \ ultima_modcon.mode_facturacio == 'atr' - if modcon_pendent_indexada or modcon_pendent_indexada: + if modcon_pendent_indexada or modcon_pendent_periodes: ctx.update({'force_pricelist': pol.modcontractuals_ids[0].llista_preu.id}) if polissa.data_baixa: ctx = {'date': datetime.strptime(polissa.data_baixa, '%Y-%m-%d')}