chore: Added Material Request Reference in Purchase Recipt Dashboard for Tracking

This commit is contained in:
Vishal 2022-10-28 11:36:14 +05:30
parent 183662c0e2
commit a04c44fe34

View File

@ -1,6 +1,5 @@
from frappe import _ from frappe import _
def get_data(): def get_data():
return { return {
"fieldname": "purchase_receipt_no", "fieldname": "purchase_receipt_no",
@ -12,13 +11,14 @@ def get_data():
"Purchase Receipt": "return_against", "Purchase Receipt": "return_against",
}, },
"internal_links": { "internal_links": {
"Material Request": ["items", "material_request"],
"Purchase Order": ["items", "purchase_order"], "Purchase Order": ["items", "purchase_order"],
"Project": ["items", "project"], "Project": ["items", "project"],
"Quality Inspection": ["items", "quality_inspection"], "Quality Inspection": ["items", "quality_inspection"],
}, },
"transactions": [ "transactions": [
{"label": _("Related"), "items": ["Purchase Invoice", "Landed Cost Voucher", "Asset"]}, {"label": _("Related"), "items": ["Purchase Invoice", "Landed Cost Voucher", "Asset"]},
{"label": _("Reference"), "items": ["Purchase Order", "Quality Inspection", "Project"]}, {"label": _("Reference"), "items": ["Material Request", "Purchase Order", "Quality Inspection", "Project"]},
{"label": _("Returns"), "items": ["Purchase Receipt"]}, {"label": _("Returns"), "items": ["Purchase Receipt"]},
{"label": _("Subscription"), "items": ["Auto Repeat"]}, {"label": _("Subscription"), "items": ["Auto Repeat"]},
], ],