setting list_views

This commit is contained in:
Rushabh Mehta
2013-01-29 17:53:29 +05:30
parent 6abb2e67e9
commit 08da1a0a3d
105 changed files with 575 additions and 1736 deletions

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-28 10:06:02",
"docstatus": 0,
"modified": "2013-01-28 10:37:18",
"modified": "2013-01-29 14:55:36",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -53,6 +53,7 @@
"doctype": "DocField",
"fieldname": "enabled",
"fieldtype": "Check",
"in_list_view": 1,
"label": "Enabled"
},
{
@@ -60,6 +61,7 @@
"doctype": "DocField",
"fieldname": "fraction",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Fraction"
},
{
@@ -67,6 +69,7 @@
"doctype": "DocField",
"fieldname": "fraction_units",
"fieldtype": "Int",
"in_list_view": 1,
"label": "Fraction Units"
},
{
@@ -74,6 +77,7 @@
"doctype": "DocField",
"fieldname": "symbol",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Symbol"
},
{
@@ -81,8 +85,9 @@
"doctype": "DocField",
"fieldname": "number_format",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Number Format",
"options": "\n#,###.##\n#.###,##\n# ###.##\n#,##,###.##\n#.###\n#,###"
"options": "\n#,###.##\n#.###,##\n# ###.##\n#,###.###\n#,##,###.##\n#.###\n#,###"
},
{
"cancel": 1,

View File

@@ -1,19 +0,0 @@
wn.doclistviews['Currency'] = wn.views.ListView.extend({
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
"`tabCurrency`.enabled",
]);
this.stats = this.stats.concat(['enabled']);
this.order_by = "`tabCurrency`.`enabled` desc, `tabCurrency`.modified desc";
},
columns: [
{width: '3%', content: 'check'},
{width: '5%', content: 'avatar'},
{width: '3%', content: "enabled"},
{width: '70%', content: 'name'},
{width: '20%', content:'modified',
css: {'text-align': 'right', 'color': '#777'}},
]
});

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-28 10:06:02",
"docstatus": 0,
"modified": "2013-01-28 15:09:04",
"modified": "2013-01-29 14:55:57",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -114,7 +114,7 @@
"fieldname": "number_format",
"fieldtype": "Select",
"label": "Number Format",
"options": "\n#,###.##\n#.###,##\n# ###.##\n#,##,###.##\n#.###\n#,###"
"options": "\n#,###.##\n#.###,##\n# ###.##\n#,###.###\n#,##,###.##\n#.###\n#,###"
},
{
"description": "Precision for Float fields (quantities, discounts, percentages etc) only for display. Floats will still be calculated up to 6 decimals.",