fix(lead): reload contact before updating links (#29966)

* fix(lead): reload contact before updading links

Contact might have changed since it was created.

* refactor: reload contact after insert
This commit is contained in:
Raffael Meyer
2022-03-10 10:17:29 +01:00
committed by GitHub
parent 93e9fe8327
commit 6794148c04

View File

@@ -214,6 +214,7 @@ class Lead(SellingController):
})
contact.insert(ignore_permissions=True)
contact.reload() # load changes by hooks on contact
return contact