commit | e42fb32f6fe9ee27fb47ee7b2442be922822906e | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Thu Apr 20 08:45:09 2017 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Thu Apr 20 08:45:18 2017 +0530 |
tree | 0f9a25e49635206363aed3d3dd559d3ea9b5efa9 | |
parent | 00bec1c272f0ce11a0ee3015f9b9a186280f4306 [diff] |
Fixed allow_zero_valuation_rate patch
diff --git a/erpnext/patches/v8_0/rename_is_sample_item_to_allow_zero_valuation_rate.py b/erpnext/patches/v8_0/rename_is_sample_item_to_allow_zero_valuation_rate.py index 744cfed..e517df5 100644 --- a/erpnext/patches/v8_0/rename_is_sample_item_to_allow_zero_valuation_rate.py +++ b/erpnext/patches/v8_0/rename_is_sample_item_to_allow_zero_valuation_rate.py
@@ -9,4 +9,5 @@ for doctype in doc_list: frappe.reload_doctype(doctype) - rename_field(doctype, "is_sample_item", "allow_zero_valuation_rate") \ No newline at end of file + if "is_sample_item" in frappe.db.get_table_columns(doctype): + rename_field(doctype, "is_sample_item", "allow_zero_valuation_rate") \ No newline at end of file