moved get_list_context to module
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
index a13821f..b546963 100644
--- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
+++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
@@ -579,12 +579,11 @@
})
)
- @staticmethod
- def get_list_context(context=None):
- from erpnext.controllers.website_list_for_contact import get_list_context
- list_context = get_list_context(context)
- list_context["title"] = _("My Invoices")
- return list_context
+def get_list_context(context=None):
+ from erpnext.controllers.website_list_for_contact import get_list_context
+ list_context = get_list_context(context)
+ list_context["title"] = _("My Invoices")
+ return list_context
@frappe.whitelist()
def get_bank_cash_account(mode_of_payment, company):
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index de9f26b..a016262 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -118,7 +118,7 @@
erpnext.patches.v5_0.update_material_transfer_for_manufacture
erpnext.patches.v5_0.manufacturing_activity_type
erpnext.patches.v5_0.update_item_description_and_image
-erpnext.patches.v5_0.update_material_transferred_for_manufacturing
+erpnext.patches.v5_0.update_material_transferred_for_qty
erpnext.patches.v5_0.stock_entry_update_value
erpnext.patches.v5_0.convert_stock_reconciliation
erpnext.patches.v5_0.update_projects
diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py
index 7d47f8c..a06f3d7 100644
--- a/erpnext/selling/doctype/sales_order/sales_order.py
+++ b/erpnext/selling/doctype/sales_order/sales_order.py
@@ -231,12 +231,11 @@
def on_update(self):
pass
- @staticmethod
- def get_list_context(context=None):
- from erpnext.controllers.website_list_for_contact import get_list_context
- list_context = get_list_context(context)
- list_context["title"] = _("My Orders")
- return list_context
+def get_list_context(context=None):
+ from erpnext.controllers.website_list_for_contact import get_list_context
+ list_context = get_list_context(context)
+ list_context["title"] = _("My Orders")
+ return list_context
@frappe.whitelist()
def make_material_request(source_name, target_doc=None):
diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.py b/erpnext/stock/doctype/delivery_note/delivery_note.py
index 35fc38f..9127e24 100644
--- a/erpnext/stock/doctype/delivery_note/delivery_note.py
+++ b/erpnext/stock/doctype/delivery_note/delivery_note.py
@@ -285,12 +285,11 @@
}
update_bin(args)
- @staticmethod
- def get_list_context(context=None):
- from erpnext.controllers.website_list_for_contact import get_list_context
- list_context = get_list_context(context)
- list_context["title"] = _("My Shipments")
- return list_context
+def get_list_context(context=None):
+ from erpnext.controllers.website_list_for_contact import get_list_context
+ list_context = get_list_context(context)
+ list_context["title"] = _("My Shipments")
+ return list_context
def get_invoiced_qty_map(delivery_note):
"""returns a map: {dn_detail: invoiced_qty}"""
diff --git a/erpnext/support/doctype/issue/issue.py b/erpnext/support/doctype/issue/issue.py
index 1c0e1b6..841d905 100644
--- a/erpnext/support/doctype/issue/issue.py
+++ b/erpnext/support/doctype/issue/issue.py
@@ -48,12 +48,11 @@
# if no date, it should be set as None and not a blank string "", as per mysql strict config
self.resolution_date = None
- @staticmethod
- def get_list_context(context=None):
- return {
- "title": _("My Issues"),
- "get_list": get_issue_list
- }
+def get_list_context(context=None):
+ return {
+ "title": _("My Issues"),
+ "get_list": get_issue_list
+ }
def get_issue_list(doctype, txt, filters, limit_start, limit_page_length=20):
from frappe.templates.pages.list import get_list