fixes in auto create time logs
This commit is contained in:
parent
a9b3ec180e
commit
2017796de7
@ -298,7 +298,7 @@ def make_time_log(name, operation, from_time, to_time, qty=None, project=None,
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def auto_make_time_log(production_order_id):
|
def auto_make_time_log(production_order_id):
|
||||||
if frappe.db.get_value("Time Log", filters={"production_order": production_order_id}):
|
if frappe.db.get_value("Time Log", filters={"production_order": production_order_id, "docstatus":1}):
|
||||||
frappe.throw(_("Time logs already exists against this Production Order"))
|
frappe.throw(_("Time logs already exists against this Production Order"))
|
||||||
|
|
||||||
time_logs = []
|
time_logs = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user