Nabin Hait | 38477a3 | 2011-11-21 17:16:48 +0530 | [diff] [blame] | 1 | def execute(): |
| 2 | import webnotes |
| 3 | from webnotes.modules.module_manager import reload_doc |
Nabin Hait | 2690e72 | 2011-11-21 17:27:36 +0530 | [diff] [blame] | 4 | |
Nabin Hait | 38477a3 | 2011-11-21 17:16:48 +0530 | [diff] [blame] | 5 | reload_doc('stock', 'doctype', 'stock_reconciliation') |
Nabin Hait | 2690e72 | 2011-11-21 17:27:36 +0530 | [diff] [blame] | 6 | webnotes.conn.sql("delete from `tabDocField` where (label in ('Validate Data', 'Attachment HTML', 'Attachment') or fieldname in ('next_step', 'company', 'fiscal_year', 'amendment_date')) and parent = 'Stock Reconciliation'") |