Skip to content
Snippets Groups Projects
Commit 4cb60459 authored by Daniil Digtyar Vasilieva's avatar Daniil Digtyar Vasilieva :call_me:
Browse files

[REF] energy_selfconsumption: using ORM to write name

parent 213f4cd3
No related branches found
No related tags found
3 merge requests!253[REL] Release 06/11/23,!228[IMP] energy_selfconsumption: integration invoicing,!211[IMP] energy_selfconsumption: invoicing acquired power
......@@ -61,7 +61,7 @@ class ContractGenerationWizard(models.TransientModel):
supply_point_assignation.supply_point_id.code,
supply_point_assignation.supply_point_id.owner_id.display_name,
)
contract.contract_line_ids.name = name
contract.contract_line_ids.write({"name": name})
# Update selfconsumption and distribution_table state
self.selfconsumption_id.write({"state": "active"})
self.selfconsumption_id.distribution_table_state("process", "active")
......
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