fix: add removed field

This commit is contained in:
prssanna 2020-10-20 14:50:33 +05:30
parent 605444e7e8
commit 91babec0c2
2 changed files with 11 additions and 4 deletions

View file

@ -136,15 +136,22 @@
},
{
"depends_on": "document_type",
"description": "Value from this field will be set as the due date in the ToDo",
"fieldname": "due_date_based_on",
"fieldtype": "Select",
"label": "Due Date Based On",
"description": "Value from this field will be set as the due date in the ToDo"
"label": "Due Date Based On"
},
{
"depends_on": "eval: doc.rule == 'Based on Field'",
"fieldname": "field",
"fieldtype": "Select",
"label": "Field",
"mandatory_depends_on": "eval: doc.rule == 'Based on Field'"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2020-10-13 06:48:54.019735",
"modified": "2020-10-20 14:47:20.662954",
"modified_by": "Administrator",
"module": "Automation",
"name": "Assignment Rule",

View file

@ -82,7 +82,7 @@ class AssignmentRule(Document):
elif self.rule == 'Load Balancing':
return self.get_user_load_balancing()
elif self.rule == 'Based on Field':
return doc[self.field]
return doc.get(self.field)
def get_user_round_robin(self):
'''