Merge pull request #8505 from nabinhait/develop

Fixed allow_zero_valuation_rate patch
This commit is contained in:
Nabin Hait 2017-04-20 08:46:30 +05:30 committed by GitHub
commit 3e519770de

View File

@ -9,4 +9,5 @@ def execute():
for doctype in doc_list:
frappe.reload_doctype(doctype)
rename_field(doctype, "is_sample_item", "allow_zero_valuation_rate")
if "is_sample_item" in frappe.db.get_table_columns(doctype):
rename_field(doctype, "is_sample_item", "allow_zero_valuation_rate")