fix(lead): reload address and contact before updating their links (Backport #29966) (#29968)

* 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:
Raffael Meyer
2022-03-28 14:31:00 +02:00
committed by GitHub
parent 7f3651a938
commit 471a3279b9

View File

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