Skip to content
Snippets Groups Projects
Commit 60125450 authored by Emanuel Buzey's avatar Emanuel Buzey Committed by Daniil Digtyar Vasilieva
Browse files

[FIX] energy_selfconsumption: save contract_template_id data

parent f6e5346b
No related branches found
No related tags found
No related merge requests found
Pipeline #61115 passed
......@@ -160,11 +160,12 @@ result = line.supply_point_assignation_id.distribution_table_id.selfconsumption_
self._prepare_contract_values(journal_id, contract_line)
)
product_id.write({"contract_template_id": contract_template_id.id})
self.selfconsumption_id.write(
{
"invoicing_mode": self.invoicing_mode,
"product_id": product_id,
"contract_template_id": contract_template_id,
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment