Reload doctype bewfore renaming margin fields (#8771)
This commit is contained in:
parent
f74010d379
commit
62d27ab7d3
@ -393,4 +393,4 @@ erpnext.patches.v7_2.stock_uom_in_selling
|
|||||||
erpnext.patches.v8_0.revert_manufacturers_table_from_item
|
erpnext.patches.v8_0.revert_manufacturers_table_from_item
|
||||||
erpnext.patches.v8_0.disable_instructor_role
|
erpnext.patches.v8_0.disable_instructor_role
|
||||||
erpnext.patches.v8_0.merge_student_batch_and_student_group
|
erpnext.patches.v8_0.merge_student_batch_and_student_group
|
||||||
erpnext.patches.v8_0.rename_total_margin_to_rate_with_margin
|
erpnext.patches.v8_0.rename_total_margin_to_rate_with_margin # 11-05-2017
|
@ -12,7 +12,7 @@ def execute():
|
|||||||
|
|
||||||
for d in ("Sales Order Item", "Sales Invoice Item",
|
for d in ("Sales Order Item", "Sales Invoice Item",
|
||||||
"Delivery Note Item", "Quotation Item"):
|
"Delivery Note Item", "Quotation Item"):
|
||||||
|
frappe.reload_doctype(d)
|
||||||
rename_field_if_exists(d, "total_margin", "rate_with_margin")
|
rename_field_if_exists(d, "total_margin", "rate_with_margin")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user