Anand Doshi | 6b8d0bf | 2011-11-23 18:39:08 +0530 | [diff] [blame] | 1 | """ |
| 2 | Reload DocLayer, DocLayerField and Print Format doctypes |
| 3 | """ |
| 4 | def execute(): |
| 5 | from webnotes.modules.module_manager import reload_doc |
| 6 | reload_doc('core', 'doctype', 'print_format') |
| 7 | reload_doc('core', 'doctype', 'doclayer') |
| 8 | reload_doc('core', 'doctype', 'doclayerfield') |
Anand Doshi | be14e02 | 2011-11-24 13:57:46 +0530 | [diff] [blame] | 9 | reload_doc('accounts', 'doctype', 'gl_entry') |
Anand Doshi | 8c10de6 | 2011-11-25 11:25:39 +0530 | [diff] [blame] | 10 | from webnotes.model.doc import Document |
| 11 | d = Document('DocType Label') |
| 12 | d.dt = "DocLayer" |
| 13 | d.dt_label = "Customize Form View" |
| 14 | d.save(1) |
| 15 | from webnotes.session_cache import clear |
| 16 | clear() |