Skip to content
Snippets Groups Projects
Commit cb977ed6 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

[IMP] compute prorata only for prod counters

parent 3b98c8d8
Branches 10.0
No related tags found
No related merge requests found
......@@ -219,6 +219,8 @@ class AccOperationImportWizard(models.TransientModel):
start_date=start_date,
end_date=end_date,
)
# We recompute prorata only if prod or surplus counter
if data_filename[3] in ("prod", "surplus"):
self.env["acc.enedis.cdc.prorata"].populate_daily_prorata(
acc_operation_id=self.operation_id.id,
start_date=start_date,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment