* fix(lead): reload address and contact before updating their links They might have changed since they were created. Backport of #29966. * refactor: reload contact after insert
This commit is contained in:
@@ -189,6 +189,7 @@ class Lead(SellingController):
|
|||||||
})
|
})
|
||||||
|
|
||||||
contact.insert(ignore_permissions=True)
|
contact.insert(ignore_permissions=True)
|
||||||
|
contact.reload() # load changes by hooks on contact
|
||||||
|
|
||||||
return contact
|
return contact
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user