Browse Source

fix: removing toggle_display for address and contact HTML (#27152)

develop
Anupam Kumar 3 years ago
committed by GitHub
parent
commit
c8f22e5524
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      erpnext/selling/doctype/customer/customer.js
  2. 2
      erpnext/selling/doctype/customer/customer.json

1
erpnext/selling/doctype/customer/customer.js

@ -111,7 +111,6 @@ frappe.ui.form.on("Customer", {
}
frappe.dynamic_link = {doc: frm.doc, fieldname: 'name', doctype: 'Customer'}
frm.toggle_display(['address_html','contact_html'], !frm.doc.__islocal);
if(!frm.doc.__islocal) {
frappe.contacts.render_address_and_contact(frm);

2
erpnext/selling/doctype/customer/customer.json

@ -268,6 +268,7 @@
"options": "fa fa-map-marker"
},
{
"depends_on": "eval: !doc.__islocal",
"fieldname": "address_html",
"fieldtype": "HTML",
"label": "Address HTML",
@ -284,6 +285,7 @@
"width": "50%"
},
{
"depends_on": "eval: !doc.__islocal",
"fieldname": "contact_html",
"fieldtype": "HTML",
"label": "Contact HTML",

Loading…
Cancel
Save