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") |