[patch] Update billing status in Delivery Note and Purchase Receipt

This commit is contained in:
Nabin Hait
2016-01-01 13:50:47 +05:30
committed by Anand Doshi
parent a2afb16f6b
commit c040075bd4
8 changed files with 27 additions and 17 deletions

View File

@@ -249,7 +249,7 @@ class StatusUpdater(Document):
'Fully %(keyword)s', 'Partly %(keyword)s'))
where name='%(name)s'""" % args)
if args.get("set_modified"):
if change_modified:
target = frappe.get_doc(args["target_parent_dt"], args["name"])
target.set_status(update=True)
target.notify_update()