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

[FIX] energy_communities: call method only if crm lead is assigned

parent 7a265714
No related branches found
No related tags found
2 merge requests!277[REL] Release Sprint 27/11/23,!259[FIX] energy_communities: demo data not loading.
......@@ -213,7 +213,8 @@ class AccountMulticompanyEasyCreationWiz(models.TransientModel):
def action_accept(self):
super().action_accept()
self.with_delay()._after_action_accept_hook()
self.crm_lead_id.action_set_won_rainbowman()
if self.crm_lead_id:
self.crm_lead_id.action_set_won_rainbowman()
return {
"type": "ir.actions.client",
"tag": "display_notification",
......
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