frappe.call({
args: {"field_name1":"amount"
,"field_name2":"currency" ,"value": 1 },
method:"project_app.projects.doctype.project.project.set_property",
callback: function(r)
{
console.log(r.message);
frm.refresh_fields();
}
});
@frappe.whitelist()
def set_property(field_name1,field_name2,value):
make_property_setter('Donors', field_name1, "in_list_view", value , "Check")
return make_property_setter('Donors', field_name2, "in_list_view", value , "Check")
how to change field property in frappe using py and js malmahdi
Re: how to change field property in frappe using py and js malmahdi
from frappe.custom.doctype.property_setter.property_setter import make_property_setter