added __() for options that need label.

This commit is contained in:
81552433qqcom 2014-09-12 16:06:13 +08:00 committed by Anand Doshi
parent 1c440b3b31
commit e3b63f2d9c
2 changed files with 31 additions and 5 deletions

View File

@ -19,14 +19,24 @@ var get_filters = function(){
"fieldname":"based_on", "fieldname":"based_on",
"label": __("Based On"), "label": __("Based On"),
"fieldtype": "Select", "fieldtype": "Select",
"options": ["Item", "Item Group", "Supplier", "Supplier Type", "Project"].join("\n"), "options": [
{ "value": "Item", "label": __("Item") },
{ "value": "Item Group", "label": __("Item Group") },
{ "value": "Supplier", "label": __("Supplier") },
{ "value": "Supplier Type", "label": __("Supplier Type") },
{ "value": "Supplier Type", "label": __("Project") }
],
"default": "Item" "default": "Item"
}, },
{ {
"fieldname":"group_by", "fieldname":"group_by",
"label": __("Group By"), "label": __("Group By"),
"fieldtype": "Select", "fieldtype": "Select",
"options": ["", "Item", "Supplier"].join("\n"), "options": [
{ "value": "", "label": "" },
{ "value": "Item", "label": __("Item") },
{ "value": "Supplier", "label": __("Supplier") }
],
"default": "" "default": ""
}, },
{ {

View File

@ -7,21 +7,37 @@ var get_filters = function(){
"fieldname":"period", "fieldname":"period",
"label": __("Period"), "label": __("Period"),
"fieldtype": "Select", "fieldtype": "Select",
"options": ["Monthly", "Quarterly", "Half-Yearly", "Yearly"].join("\n"), "options": [
{ "value": "Monthly", "label": __("Monthly") },
{ "value": "Quarterly", "label": __("Quarterly") },
{ "value": "Half-Yearly", "label": __("Half-Yearly") },
{ "value": "Yearly", "label": __("Yearly") }
],
"default": "Monthly" "default": "Monthly"
}, },
{ {
"fieldname":"based_on", "fieldname":"based_on",
"label": __("Based On"), "label": __("Based On"),
"fieldtype": "Select", "fieldtype": "Select",
"options": ["Item", "Item Group", "Customer", "Customer Group", "Territory", "Project"].join("\n"), "options": [
{ "value": "Item", "label": __("Item") },
{ "value": "Item Group", "label": __("Item Group") },
{ "value": "Customer", "label": __("Customer") },
{ "value": "Customer Group", "label": __("Customer Group") },
{ "value": "Territory", "label": __("Territory") },
{ "value": "Supplier Type", "label": __("Project") }
],
"default": "Item" "default": "Item"
}, },
{ {
"fieldname":"group_by", "fieldname":"group_by",
"label": __("Group By"), "label": __("Group By"),
"fieldtype": "Select", "fieldtype": "Select",
"options": ["", "Item", "Customer"].join("\n"), "options": [
{ "value": "", "label": "" },
{ "value": "Item", "label": __("Item") },
{ "value": "Customer", "label": __("Customer") }
],
"default": "" "default": ""
}, },
{ {