rebuild all tree through push_patch
Appraisal score allowed to be fraction unhide group/ledger field in cost senter for import purpose update_nsm_model in cost center on_trash()
This commit is contained in:
parent
3c8a50c257
commit
7e97d1f390
@ -347,9 +347,6 @@ def execute(patch_no):
|
|||||||
prev_sle = bobj.get_prev_sle(posting_date = '2011-09-01', posting_time = '01:00')
|
prev_sle = bobj.get_prev_sle(posting_date = '2011-09-01', posting_time = '01:00')
|
||||||
bobj.update_item_valuation(posting_date = '2011-09-01', posting_time = '01:00', prev_sle = prev_sle)
|
bobj.update_item_valuation(posting_date = '2011-09-01', posting_time = '01:00', prev_sle = prev_sle)
|
||||||
elif patch_no == 368:
|
elif patch_no == 368:
|
||||||
sql("update tabDocPerm set amend = 0 where parent = 'Salary Structure'")
|
|
||||||
sql("update tabDocPerm set cancel = 1 where parent = 'Company' and role = 'System Manager'")
|
|
||||||
elif patch_no == 369:
|
|
||||||
from webnotes.utils import nestedset
|
from webnotes.utils import nestedset
|
||||||
t = [
|
t = [
|
||||||
['Account', 'parent_account'], ['Cost Center', 'parent_cost_center'],
|
['Account', 'parent_account'], ['Cost Center', 'parent_cost_center'],
|
||||||
@ -358,9 +355,11 @@ def execute(patch_no):
|
|||||||
]
|
]
|
||||||
for d in t:
|
for d in t:
|
||||||
nestedset.rebuild_tree(d[0], d[1])
|
nestedset.rebuild_tree(d[0], d[1])
|
||||||
elif patch_no == 370:
|
elif patch_no == 369:
|
||||||
reload_doc('hr', 'doctype', 'appraisal')
|
reload_doc('hr', 'doctype', 'appraisal')
|
||||||
reload_doc('hr', 'doctype', 'appraisal_detail')
|
reload_doc('hr', 'doctype', 'appraisal_detail')
|
||||||
|
elif patch_no == 370:
|
||||||
|
sql("update `tabDocField` set `hidden` = 0 where fieldname = 'group_or_ledger' and parent = 'Cost Center'")
|
||||||
elif patch_no == 371:
|
elif patch_no == 371:
|
||||||
comp = sql("select name from tabCompany where docstatus!=2")
|
comp = sql("select name from tabCompany where docstatus!=2")
|
||||||
fy = sql("select name from `tabFiscal Year` order by year_start_date asc")
|
fy = sql("select name from `tabFiscal Year` order by year_start_date asc")
|
||||||
@ -376,6 +375,9 @@ def execute(patch_no):
|
|||||||
sql("commit")
|
sql("commit")
|
||||||
sql("start transaction")
|
sql("start transaction")
|
||||||
elif patch_no == 372:
|
elif patch_no == 372:
|
||||||
|
sql("update tabDocPerm set amend = 0 where parent = 'Salary Structure'")
|
||||||
|
sql("update tabDocPerm set cancel = 1 where parent = 'Company' and role = 'System Manager'")
|
||||||
|
elif patch_no == 373:
|
||||||
if sql("select count(name) from `tabDocField` where label = 'View Ledger Entry' and parent = 'Journal Voucher' and fieldtype = 'Button'")[0][0] > 1:
|
if sql("select count(name) from `tabDocField` where label = 'View Ledger Entry' and parent = 'Journal Voucher' and fieldtype = 'Button'")[0][0] > 1:
|
||||||
sql("delete from `tabDocField` where label = 'View Ledger Entry' and parent = 'Journal Voucher' and fieldtype = 'Button' limit 1")
|
sql("delete from `tabDocField` where label = 'View Ledger Entry' and parent = 'Journal Voucher' and fieldtype = 'Button' limit 1")
|
||||||
if sql("select count(name) from `tabDocField` where label = 'Get Balance' and parent = 'Journal Voucher' and fieldtype = 'Button'")[0][0] > 1:
|
if sql("select count(name) from `tabDocField` where label = 'Get Balance' and parent = 'Journal Voucher' and fieldtype = 'Button'")[0][0] > 1:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user