Merge pull request #26678 from rohitwaghchaure/fixed-dict-object-has-no-attr-develop

fix: not able to add employee in the job card
This commit is contained in:
rohitwaghchaure 2021-07-27 22:22:10 +05:30 committed by GitHub
commit 69983eb8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,11 +192,11 @@ class JobCard(Document):
"completed_qty": args.get("completed_qty") or 0.0
})
elif args.get("start_time"):
new_args = {
new_args = frappe._dict({
"from_time": get_datetime(args.get("start_time")),
"operation": args.get("sub_operation"),
"completed_qty": 0.0
}
})
if employees:
for name in employees: