Skip to content

Commit

Permalink
Merge pull request frappe#26678 from rohitwaghchaure/fixed-dict-objec…
Browse files Browse the repository at this point in the history
…t-has-no-attr-develop

fix: not able to add employee in the job card
  • Loading branch information
rohitwaghchaure authored Jul 27, 2021
2 parents 1ec7ccd + 7903aec commit 69983eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/manufacturing/doctype/job_card/job_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ def add_time_log(self, args):
"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:
Expand Down

0 comments on commit 69983eb

Please sign in to comment.