Added Payment documents as Quick Links in SO/PO

This commit is contained in:
Nabin Hait 2017-04-26 14:05:14 +05:30
parent f7d81c7a7f
commit db8f41ba55
2 changed files with 16 additions and 1 deletions

View File

@ -3,6 +3,10 @@ from frappe import _
def get_data(): def get_data():
return { return {
'fieldname': 'purchase_order', 'fieldname': 'purchase_order',
'non_standard_fieldnames': {
'Journal Entry': 'reference_name',
'Payment Entry': 'reference_name'
},
'internal_links': { 'internal_links': {
'Material Request': ['items', 'material_request'], 'Material Request': ['items', 'material_request'],
'Supplier Quotation': ['items', 'supplier_quotation'], 'Supplier Quotation': ['items', 'supplier_quotation'],
@ -13,6 +17,10 @@ def get_data():
'label': _('Related'), 'label': _('Related'),
'items': ['Purchase Receipt', 'Purchase Invoice'] 'items': ['Purchase Receipt', 'Purchase Invoice']
}, },
{
'label': _('Payment'),
'items': ['Payment Entry', 'Journal Entry']
},
{ {
'label': _('Reference'), 'label': _('Reference'),
'items': ['Material Request', 'Supplier Quotation', 'Project'] 'items': ['Material Request', 'Supplier Quotation', 'Project']
@ -20,6 +28,6 @@ def get_data():
{ {
'label': _('Sub-contracting'), 'label': _('Sub-contracting'),
'items': ['Stock Entry'] 'items': ['Stock Entry']
}, }
] ]
} }

View File

@ -5,6 +5,9 @@ def get_data():
'fieldname': 'sales_order', 'fieldname': 'sales_order',
'non_standard_fieldnames': { 'non_standard_fieldnames': {
'Delivery Note': 'against_sales_order', 'Delivery Note': 'against_sales_order',
'Journal Entry': 'reference_name',
'Payment Entry': 'reference_name',
'Payment Request': 'reference_name'
}, },
'internal_links': { 'internal_links': {
'Quotation': ['items', 'prevdoc_docname'] 'Quotation': ['items', 'prevdoc_docname']
@ -30,5 +33,9 @@ def get_data():
'label': _('Reference'), 'label': _('Reference'),
'items': ['Quotation'] 'items': ['Quotation']
}, },
{
'label': _('Payment'),
'items': ['Payment Entry', 'Payment Request', 'Journal Entry']
},
] ]
} }