diff --git a/erpnext/patches/lcw_patch.py b/erpnext/patches/lcw_patch.py new file mode 100644 index 0000000000..3de4e4baf6 --- /dev/null +++ b/erpnext/patches/lcw_patch.py @@ -0,0 +1,8 @@ +def execute(): + import webnotes + from webnotes.modules.module_manager import reload_doc + + reload_doc('stock', 'doctype', 'landed_cost_wizard') + reload_doc('stock', 'doctype', 'lc_pr_detail') + + sql("delete from `tabDocField` where parent ='LC PR Detail' and fieldname in ('purchase_receipt_no', 'include_in_landed_cost')") diff --git a/erpnext/patches/reload_lc_wizard.py b/erpnext/patches/reload_lc_wizard.py index 6b8565eafe..5b69c30c5e 100644 --- a/erpnext/patches/reload_lc_wizard.py +++ b/erpnext/patches/reload_lc_wizard.py @@ -4,6 +4,6 @@ def execute(): from webnotes.model import delete_doc delete_doc('DocType', 'Landed Cost Wizard') - delete_doc('DocType', 'LC PR Detail') + delete_doc('DocType', 'Landed Cost Wizard') reload_doc('stock', 'doctype', 'landed_cost_wizard') reload_doc('stock', 'doctype', 'lc_pr_detail')