From 48671df12c6a81318aa071d42480af57540fee1e Mon Sep 17 00:00:00 2001 From: Ravi Dey Date: Mon, 27 Jun 2011 12:03:36 +0530 Subject: [PATCH] HR Module tabDocField company patch --- patches/patch.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/patches/patch.py b/patches/patch.py index ccce9129651..d4d861f5b84 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1,6 +1,6 @@ # REMEMBER to update this # ======================== -last_patch = 297 +last_patch = 298 #------------------------------------------- @@ -1186,3 +1186,7 @@ def execute(patch_no): reload_doc('payroll', 'doctype', 'appraisal') reload_doc('payroll', 'doctype', 'salary_structure') reload_doc('payroll', 'doctype', 'salary_slip') + elif patch_no == 298: + sql("update `tabDocField` set options = 'Link:Company' where parent = 'Attendance' and fieldname = 'company'") + sql("update `tabDocField` set options = 'Link:Company' where parent = 'Expense Voucher' and fieldname = 'company'") + sql("update `tabDocField` set options = 'Link:Company' where parent = 'Appraisal' and fieldname = 'company'")