Browse Source

Role mapping fixes

version2
venkata akhil 1 year ago
parent
commit
a2a61f7966
  1. 10
      smart_service/apis/master_api.py
  2. 1
      smart_service/masters/doctype/role_master/role_master.js
  3. 2
      smart_service/masters/doctype/role_master/role_master.json

10
smart_service/apis/master_api.py

@ -350,11 +350,11 @@ def old_variant(LSD, language):
@frappe.whitelist(methods=['POST'])
def variant(LSD, language, iid=None):
date_format = "%Y-%m-%d %H:%M:%S.%f"
if LSD != "":
try:
datetime.datetime.strptime(LSD, date_format)
except:
return {"status": 0, "error": " 'LSD' format error"}
# if LSD != "null":
# try:
# datetime.datetime.strptime(LSD, date_format)
# except:
# return {"status": 0, "error": " 'LSD' format error"}
publish_type = check_pub_type(iid)
try:
data = frappe.db.sql(f'''

1
smart_service/masters/doctype/role_master/role_master.js

@ -108,6 +108,7 @@ frappe.ui.form.on('Role Master', {
val += $(this).val() + ","
});
val = val.substring(0, val.length - 1);
// console.log(val,"val")
frm.set_value('modules', val);
cur_frm.refresh_fields();

2
smart_service/masters/doctype/role_master/role_master.json

@ -60,7 +60,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-10-09 12:02:23.458890",
"modified": "2023-10-17 18:03:13.331281",
"modified_by": "Administrator",
"module": "Masters",
"name": "Role Master",

Loading…
Cancel
Save