Nijil | 6800ad5 | 2011-11-22 15:21:42 +0530 | [diff] [blame] | 1 | def execute(): |
| 2 | import webnotes |
| 3 | from webnotes.modules.module_manager import reload_doc |
| 4 | |
Nijil | 4e54d7a | 2011-11-24 16:18:42 +0530 | [diff] [blame] | 5 | reload_doc('accounts', 'doctype', 'pv_detail') |
| 6 | reload_doc('buying', 'doctype', 'po_detail') |
Nijil | 6800ad5 | 2011-11-22 15:21:42 +0530 | [diff] [blame] | 7 | reload_doc('stock', 'doctype', 'purchase_receipt_detail') |
Nabin Hait | 536e0cb | 2011-12-13 19:05:13 +0530 | [diff] [blame] | 8 | if webnotes.conn.sql("select name from `tabDocField` where parent = 'PO Detail' and fieldname = 'discount'"): |
Nijil Y | f6a3441 | 2011-12-13 18:31:42 +0530 | [diff] [blame] | 9 | webnotes.conn.sql("update `tabPO Detail` set discount_rate=discount") |
Nabin Hait | 3a2fcba | 2011-12-14 11:26:46 +0530 | [diff] [blame] | 10 | |
| 11 | # Features setup |
| 12 | reload_doc('setup', 'doctype', 'features_setup') |
| 13 | from webnotes.model.code import get_obj |
| 14 | get_obj('Features Setup').validate() |