update js inject file to bust caching
This commit is contained in:
parent
4b55d8790e
commit
07c1181d6e
5 changed files with 58 additions and 25 deletions
|
|
@ -262,7 +262,7 @@ def upsert_client(data):
|
|||
"custom_customer": customer_doc.name,
|
||||
"role": contact_data.get("contact_role", "Other"),
|
||||
"custom_email": contact_data.get("email"),
|
||||
"is_primary_contact": data.get("is_primary", False),
|
||||
"is_primary_contact":1 if data.get("is_primary", False) else 0,
|
||||
"email_ids": [{
|
||||
"email_id": contact_data.get("email"),
|
||||
"is_primary": 1
|
||||
|
|
@ -338,7 +338,7 @@ def upsert_client(data):
|
|||
|
||||
address_doc.save(ignore_permissions=True)
|
||||
customer_doc.save(ignore_permissions=True)
|
||||
|
||||
frappe.local.message_log = []
|
||||
return build_success_response({
|
||||
"customer": customer_doc.as_dict(),
|
||||
"address": address_doc.as_dict(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue