add reload_doc in a few patches
This commit is contained in:
parent
d6e49150a8
commit
387e1e21cb
@ -6,6 +6,7 @@ import frappe
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
reference_date = guess_reference_date()
|
reference_date = guess_reference_date()
|
||||||
|
frappe.reload_doc('accounts', 'doctype', 'journal_voucher_detail')
|
||||||
for name in frappe.db.sql_list("""select name from `tabJournal Voucher`
|
for name in frappe.db.sql_list("""select name from `tabJournal Voucher`
|
||||||
where date(creation)>=%s""", reference_date):
|
where date(creation)>=%s""", reference_date):
|
||||||
jv = frappe.get_doc("Journal Voucher", name)
|
jv = frappe.get_doc("Journal Voucher", name)
|
||||||
|
@ -5,6 +5,7 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doc('manufacturing', 'doctype', 'bom_operation')
|
||||||
for d in frappe.db.sql("""select bom.name from `tabBOM` bom where bom.docstatus < 2 and
|
for d in frappe.db.sql("""select bom.name from `tabBOM` bom where bom.docstatus < 2 and
|
||||||
exists(select bom_op.name from `tabBOM Operation` bom_op where
|
exists(select bom_op.name from `tabBOM Operation` bom_op where
|
||||||
bom.name = bom_op.parent and bom_op.fixed_cycle_cost IS NOT NULL)""", as_dict=1):
|
bom.name = bom_op.parent and bom_op.fixed_cycle_cost IS NOT NULL)""", as_dict=1):
|
||||||
|
Loading…
Reference in New Issue
Block a user