error fixed in label_cleanup
This commit is contained in:
parent
6c75cce4b9
commit
1f4aeab85c
@ -3,14 +3,14 @@ def execute():
|
||||
from webnotes.model import delete_doc
|
||||
from webnotes.modules.module_manager import reload_doc
|
||||
|
||||
dt = [
|
||||
dt = {
|
||||
'selling': ['quotation', 'sales_order', 'quotation_detail', 'sales_order_detail'],
|
||||
'stock': ['delivery_note', 'delivery_note_detail', 'purchase_receipt', 'purchase_receipt_detail'],
|
||||
'accounts': ['receivable_voucher', 'payable_voucher', 'rv_detail', 'pv_detail', 'rv_tax_detail', 'purchase_tax_detail'],
|
||||
'buying': ['purchase_order', 'po_detail']
|
||||
]
|
||||
}
|
||||
for m in dt:
|
||||
for d in m:
|
||||
for d in dt[m]:
|
||||
reload_doc(m, 'doctype', d)
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ def execute():
|
||||
|
||||
del_flds = {
|
||||
'Sales Order Detail': "'delivery_date', 'confirmation_date'",
|
||||
'Delivery Note': "'supplier', 'supplier_address', 'purchase_receipt_no', 'purchase_order_no', 'transaction_date'"
|
||||
'Delivery Note': "'supplier', 'supplier_address', 'purchase_receipt_no', 'purchase_order_no', 'transaction_date'",
|
||||
'Receivable Voucher': "'voucher_date'",
|
||||
'Payable Voucher': "'voucher_date'",
|
||||
'Purchase Receipt': "'transaction_date'"
|
||||
@ -39,4 +39,4 @@ def execute():
|
||||
webnotes.conn.sql("delete from `tabDocField` where label in (%s) and parent = %s", (del_labels[d], d))
|
||||
|
||||
delete_doc('DocType', 'Update Delivery Date Detail')
|
||||
delete_doc('DocType', 'Update Delivery Date'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user