moved get_list_context to module
This commit is contained in:
parent
2e5be6f994
commit
9d9e31f4e8
@ -579,12 +579,11 @@ class SalesInvoice(SellingController):
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
def get_list_context(context=None):
|
||||||
def get_list_context(context=None):
|
from erpnext.controllers.website_list_for_contact import get_list_context
|
||||||
from erpnext.controllers.website_list_for_contact import get_list_context
|
list_context = get_list_context(context)
|
||||||
list_context = get_list_context(context)
|
list_context["title"] = _("My Invoices")
|
||||||
list_context["title"] = _("My Invoices")
|
return list_context
|
||||||
return list_context
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_bank_cash_account(mode_of_payment, company):
|
def get_bank_cash_account(mode_of_payment, company):
|
||||||
|
@ -118,7 +118,7 @@ erpnext.patches.v5_0.rename_customer_issue
|
|||||||
erpnext.patches.v5_0.update_material_transfer_for_manufacture
|
erpnext.patches.v5_0.update_material_transfer_for_manufacture
|
||||||
erpnext.patches.v5_0.manufacturing_activity_type
|
erpnext.patches.v5_0.manufacturing_activity_type
|
||||||
erpnext.patches.v5_0.update_item_description_and_image
|
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.stock_entry_update_value
|
||||||
erpnext.patches.v5_0.convert_stock_reconciliation
|
erpnext.patches.v5_0.convert_stock_reconciliation
|
||||||
erpnext.patches.v5_0.update_projects
|
erpnext.patches.v5_0.update_projects
|
||||||
|
@ -231,12 +231,11 @@ class SalesOrder(SellingController):
|
|||||||
def on_update(self):
|
def on_update(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@staticmethod
|
def get_list_context(context=None):
|
||||||
def get_list_context(context=None):
|
from erpnext.controllers.website_list_for_contact import get_list_context
|
||||||
from erpnext.controllers.website_list_for_contact import get_list_context
|
list_context = get_list_context(context)
|
||||||
list_context = get_list_context(context)
|
list_context["title"] = _("My Orders")
|
||||||
list_context["title"] = _("My Orders")
|
return list_context
|
||||||
return list_context
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def make_material_request(source_name, target_doc=None):
|
def make_material_request(source_name, target_doc=None):
|
||||||
|
@ -285,12 +285,11 @@ class DeliveryNote(SellingController):
|
|||||||
}
|
}
|
||||||
update_bin(args)
|
update_bin(args)
|
||||||
|
|
||||||
@staticmethod
|
def get_list_context(context=None):
|
||||||
def get_list_context(context=None):
|
from erpnext.controllers.website_list_for_contact import get_list_context
|
||||||
from erpnext.controllers.website_list_for_contact import get_list_context
|
list_context = get_list_context(context)
|
||||||
list_context = get_list_context(context)
|
list_context["title"] = _("My Shipments")
|
||||||
list_context["title"] = _("My Shipments")
|
return list_context
|
||||||
return list_context
|
|
||||||
|
|
||||||
def get_invoiced_qty_map(delivery_note):
|
def get_invoiced_qty_map(delivery_note):
|
||||||
"""returns a map: {dn_detail: invoiced_qty}"""
|
"""returns a map: {dn_detail: invoiced_qty}"""
|
||||||
|
@ -48,12 +48,11 @@ class Issue(Document):
|
|||||||
# if no date, it should be set as None and not a blank string "", as per mysql strict config
|
# if no date, it should be set as None and not a blank string "", as per mysql strict config
|
||||||
self.resolution_date = None
|
self.resolution_date = None
|
||||||
|
|
||||||
@staticmethod
|
def get_list_context(context=None):
|
||||||
def get_list_context(context=None):
|
return {
|
||||||
return {
|
"title": _("My Issues"),
|
||||||
"title": _("My Issues"),
|
"get_list": get_issue_list
|
||||||
"get_list": get_issue_list
|
}
|
||||||
}
|
|
||||||
|
|
||||||
def get_issue_list(doctype, txt, filters, limit_start, limit_page_length=20):
|
def get_issue_list(doctype, txt, filters, limit_start, limit_page_length=20):
|
||||||
from frappe.templates.pages.list import get_list
|
from frappe.templates.pages.list import get_list
|
||||||
|
Loading…
Reference in New Issue
Block a user