added newsletter listing
diff --git a/erpnext/support/doctype/newsletter/newsletter.txt b/erpnext/support/doctype/newsletter/newsletter.txt
index 0d47102..ef3033d 100644
--- a/erpnext/support/doctype/newsletter/newsletter.txt
+++ b/erpnext/support/doctype/newsletter/newsletter.txt
@@ -5,7 +5,7 @@
{
u'creation': '2012-08-23 18:49:12',
u'docstatus': 0,
- u'modified': '2012-08-24 13:39:53',
+ u'modified': '2012-08-24 14:45:00',
u'modified_by': u'Administrator',
u'owner': u'Administrator'
},
@@ -99,6 +99,7 @@
# DocField
{
+ 'colour': u'White:FFF',
u'doctype': u'DocField',
'fieldname': u'contacts',
'fieldtype': u'Check',
@@ -109,7 +110,6 @@
# DocField
{
'colour': u'White:FFF',
- 'default': u'0',
u'doctype': u'DocField',
'fieldname': u'customer_contacts',
'fieldtype': u'Check',
@@ -120,7 +120,6 @@
# DocField
{
'colour': u'White:FFF',
- 'default': u'0',
u'doctype': u'DocField',
'fieldname': u'leads',
'fieldtype': u'Check',
@@ -190,7 +189,6 @@
# DocField
{
'colour': u'White:FFF',
- 'default': u'0',
u'doctype': u'DocField',
'fieldname': u'email_sent',
'fieldtype': u'Check',
diff --git a/erpnext/support/doctype/newsletter/newsletter_list.js b/erpnext/support/doctype/newsletter/newsletter_list.js
new file mode 100644
index 0000000..485fb83
--- /dev/null
+++ b/erpnext/support/doctype/newsletter/newsletter_list.js
@@ -0,0 +1,34 @@
+// ERPNext - web based ERP (http://erpnext.com)
+// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+wn.doclistviews['Newsletter'] = wn.views.ListView.extend({
+ init: function(doclistview) {
+ this._super(doclistview);
+ this.fields = this.fields.concat([
+ "`tabNewsletter`.subject",
+ "`tabNewsletter`.email_sent",
+ ]);
+ },
+
+ columns: [
+ {width: '3%', content: 'check'},
+ {width: '5%', content: 'avatar'},
+ {width: '15%', content: 'name'},
+ {width: '55%', content: 'subject+tags'},
+ {width: '22%', content:'modified',
+ css: {'text-align': 'right', 'color':'#777'}}
+ ],
+});
\ No newline at end of file