1
0
forked from test/crm

Merge pull request #251 from shariquerik/deal-modal-issue

fix: cannot capture custom data from deal modal
This commit is contained in:
Shariq Ansari 2024-07-10 12:25:49 +05:30 committed by GitHub
commit 11e6615d56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -298,8 +298,11 @@ def create_deal(args):
deal.update({
"organization": args.get("organization") or create_organization(args),
"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)
return deal.name