fix: removing toggle_display for address and contact HTML (#27152)
This commit is contained in:
parent
b99c011947
commit
c8f22e5524
@ -111,7 +111,6 @@ frappe.ui.form.on("Customer", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
frappe.dynamic_link = {doc: frm.doc, fieldname: 'name', doctype: '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) {
|
if(!frm.doc.__islocal) {
|
||||||
frappe.contacts.render_address_and_contact(frm);
|
frappe.contacts.render_address_and_contact(frm);
|
||||||
|
@ -268,6 +268,7 @@
|
|||||||
"options": "fa fa-map-marker"
|
"options": "fa fa-map-marker"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"depends_on": "eval: !doc.__islocal",
|
||||||
"fieldname": "address_html",
|
"fieldname": "address_html",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"label": "Address HTML",
|
"label": "Address HTML",
|
||||||
@ -284,6 +285,7 @@
|
|||||||
"width": "50%"
|
"width": "50%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"depends_on": "eval: !doc.__islocal",
|
||||||
"fieldname": "contact_html",
|
"fieldname": "contact_html",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"label": "Contact HTML",
|
"label": "Contact HTML",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user