Skip to content

Commit

Permalink
Merge pull request #251 from shariquerik/deal-modal-issue
Browse files Browse the repository at this point in the history
fix: cannot capture custom data from deal modal
  • Loading branch information
shariquerik authored Jul 10, 2024
2 parents 7fab57a + b9990f5 commit 11e6615
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crm/fcrm/doctype/crm_deal/crm_deal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 11e6615

Please sign in to comment.