[minor] [fix] doctype_dasboard.py files, move data to get_data

This commit is contained in:
Rushabh Mehta 2016-10-18 14:54:39 +05:30
parent 401be3f49b
commit 17f6874450
17 changed files with 359 additions and 342 deletions

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'purchase_invoice', 'fieldname': 'purchase_invoice',
'non_standard_fieldnames': { 'non_standard_fieldnames': {
'Delivery Note': 'against_sales_invoice', 'Delivery Note': 'against_sales_invoice',
@ -28,4 +29,4 @@ data = {
'items': ['Purchase Invoice'] 'items': ['Purchase Invoice']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'sales_invoice', 'fieldname': 'sales_invoice',
'non_standard_fieldnames': { 'non_standard_fieldnames': {
'Delivery Note': 'against_sales_invoice', 'Delivery Note': 'against_sales_invoice',
@ -27,4 +28,4 @@ data = {
'items': ['Sales Invoice'] 'items': ['Sales Invoice']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'purchase_order', 'fieldname': 'purchase_order',
'internal_links': { 'internal_links': {
'Material Request': ['items', 'material_request'], 'Material Request': ['items', 'material_request'],
@ -21,4 +22,4 @@ data = {
'items': ['Stock Entry'] 'items': ['Stock Entry']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'docstatus': 1, 'docstatus': 1,
'fieldname': 'request_for_quotation', 'fieldname': 'request_for_quotation',
'transactions': [ 'transactions': [
@ -9,4 +10,4 @@ data = {
'items': ['Supplier Quotation'] 'items': ['Supplier Quotation']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'heatmap': True, 'heatmap': True,
'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'), 'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'),
'fieldname': 'supplier', 'fieldname': 'supplier',
@ -14,4 +15,4 @@ data = {
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice'] 'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
} }
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'supplier_quotation', 'fieldname': 'supplier_quotation',
'internal_links': { 'internal_links': {
'Material Request': ['items', 'material_request'], 'Material Request': ['items', 'material_request'],
@ -17,4 +18,4 @@ data = {
'items': ['Material Request', 'Request for Quotation', 'Project'] 'items': ['Material Request', 'Request for Quotation', 'Project']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'prevdoc_docname', 'fieldname': 'prevdoc_docname',
'transactions': [ 'transactions': [
{ {
@ -8,4 +9,4 @@ data = {
'items': ['Quotation'] 'items': ['Quotation']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'heatmap': True, 'heatmap': True,
'heatmap_message': _('This is based on the attendance of this Employee'), 'heatmap_message': _('This is based on the attendance of this Employee'),
'fieldname': 'employee', 'fieldname': 'employee',
@ -22,4 +23,4 @@ data = {
'items': ['Appraisal'] 'items': ['Appraisal']
} }
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'heatmap': True, 'heatmap': True,
'heatmap_message': _('This is based on the Time Sheets created against this project'), 'heatmap_message': _('This is based on the Time Sheets created against this project'),
'fieldname': 'project', 'fieldname': 'project',
@ -22,4 +23,4 @@ data = {
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice'] 'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
{
'heatmap': True, 'heatmap': True,
'heatmap_message': _('This is based on the attendance of this Student'), 'heatmap_message': _('This is based on the attendance of this Student'),
'fieldname': 'student', 'fieldname': 'student',
@ -12,4 +13,4 @@ data = {
'items': ['Program Enrollment', 'Fees', 'Assessment', 'Guardian'] 'items': ['Program Enrollment', 'Fees', 'Assessment', 'Guardian']
} }
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'heatmap': True, 'heatmap': True,
'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'), 'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'),
'fieldname': 'customer', 'fieldname': 'customer',
@ -22,4 +23,4 @@ data = {
'items': ['Project'] 'items': ['Project']
} }
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'prevdoc_docname', 'fieldname': 'prevdoc_docname',
'transactions': [ 'transactions': [
{ {
@ -8,4 +9,4 @@ data = {
'items': ['Sales Order'] 'items': ['Sales Order']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'sales_order', 'fieldname': 'sales_order',
'non_standard_fieldnames': { 'non_standard_fieldnames': {
'Delivery Note': 'against_sales_order', 'Delivery Note': 'against_sales_order',
@ -30,4 +31,4 @@ data = {
'items': ['Quotation'] 'items': ['Quotation']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'delivery_note_no', 'fieldname': 'delivery_note_no',
'non_standard_fieldnames': { 'non_standard_fieldnames': {
'Sales Invoice': 'delivery_note', 'Sales Invoice': 'delivery_note',
@ -23,4 +24,4 @@ data = {
'items': ['Stock Entry'] 'items': ['Stock Entry']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'heatmap': True, 'heatmap': True,
'heatmap_message': _('This is based on stock movement. See {0} for details')\ 'heatmap_message': _('This is based on stock movement. See {0} for details')\
.format('<a href="#query-report/Stock Ledger">' + _('Stock Ledger') + '</a>'), .format('<a href="#query-report/Stock Ledger">' + _('Stock Ledger') + '</a>'),
@ -42,4 +43,4 @@ data = {
'items': ['Production Order'] 'items': ['Production Order']
} }
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'material_request', 'fieldname': 'material_request',
'transactions': [ 'transactions': [
{ {
@ -8,4 +9,4 @@ data = {
'items': ['Request for Quotation', 'Supplier Quotation', 'Purchase Order'] 'items': ['Request for Quotation', 'Supplier Quotation', 'Purchase Order']
}, },
] ]
} }

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = { def get_data():
return {
'fieldname': 'purchase_receipt_no', 'fieldname': 'purchase_receipt_no',
'non_standard_fieldnames': { 'non_standard_fieldnames': {
'Purchase Invoice': 'purchase_receipt', 'Purchase Invoice': 'purchase_receipt',
@ -25,4 +26,4 @@ data = {
'items': ['Stock Entry'] 'items': ['Stock Entry']
}, },
] ]
} }