From c674e43885bffde3752872392fd48a016487ff4c Mon Sep 17 00:00:00 2001 From: Ravi Dey Date: Wed, 29 Jun 2011 18:15:12 +0530 Subject: [PATCH] company reload_doc delete docfield trashcompany button --- patches/patch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/patch.py b/patches/patch.py index 3db4dc63c2..c6f41c7d6c 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1203,4 +1203,5 @@ def execute(patch_no): elif patch_no == 303: pass elif patch_no == 304: - reload_doc('setup', 'doctype', 'company') + sql("delete from `tabDocField` where parent = 'company' and label = 'Trash Company' and fieldtype = 'button'") + reload_doc('setup', 'doctype', 'company')