fix: cannot capture custom data from deal modal
This commit is contained in:
parent
7fab57a2ee
commit
b9990f5b52
@ -298,8 +298,11 @@ def create_deal(args):
|
|||||||
deal.update({
|
deal.update({
|
||||||
"organization": args.get("organization") or create_organization(args),
|
"organization": args.get("organization") or create_organization(args),
|
||||||
"contacts": [{"contact": contact, "is_primary": 1}] if contact else [],
|
"contacts": [{"contact": contact, "is_primary": 1}] if contact else [],
|
||||||
"deal_owner": args.get("deal_owner"),
|
|
||||||
"status": args.get("status"),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
args.pop("organization", None)
|
||||||
|
|
||||||
|
deal.update(args)
|
||||||
|
|
||||||
deal.insert(ignore_permissions=True)
|
deal.insert(ignore_permissions=True)
|
||||||
return deal.name
|
return deal.name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user