Browse Source

Move plugin for __unported__ dir

pull/27/head
Adil Houmadi 10 years ago
parent
commit
a0c192e8e0
  1. 0
      web_export_view/AUTHORS.txt
  2. 0
      web_export_view/__init__.py
  3. 18
      web_export_view/__openerp__.py
  4. 31
      web_export_view/controllers.py
  5. 0
      web_export_view/i18n/de.po
  6. 0
      web_export_view/i18n/es.po
  7. 0
      web_export_view/i18n/fr.po
  8. 0
      web_export_view/i18n/is.po
  9. 0
      web_export_view/i18n/nl.po
  10. 0
      web_export_view/i18n/web_export_view.pot
  11. 6
      web_export_view/static/src/js/web_advanced_export.js
  12. 0
      web_export_view/static/src/xml/web_advanced_export.xml

0
__unported__/web_export_view/AUTHORS.txt → web_export_view/AUTHORS.txt

0
__unported__/web_export_view/__init__.py → web_export_view/__init__.py

18
__unported__/web_export_view/__openerp__.py → web_export_view/__openerp__.py

@ -47,13 +47,15 @@ the same data of the tree view you are looking at, headers included.
'author': 'Agile Business Group',
'website': 'http://www.agilebg.com',
'license': 'AGPL-3',
'depends': ['web'],
# 'external_dependencies': {
# 'python': ['xlwt'],
# },
'js': ['static/*/*.js', 'static/*/js/*.js'],
'qweb': ['static/xml/web_advanced_export.xml'],
'installable': False,
'depends': [
'web',
],
'js': [
'static/src/js/web_advanced_export.js',
],
'qweb': [
'static/src/xml/web_advanced_export.xml',
],
'installable': True,
'auto_install': False,
'web_preload': False,
}

31
__unported__/web_export_view/controllers.py → web_export_view/controllers.py

@ -23,9 +23,10 @@ try:
except ImportError:
import simplejson as json
import web.http as openerpweb
from web.controllers.main import ExcelExport
import openerp
import openerp.http as http
from openerp.http import request
from openerp.addons.web.controllers.main import ExcelExport
class ExcelExportView(ExcelExport):
@ -36,19 +37,19 @@ class ExcelExportView(ExcelExport):
raise AttributeError()
return super(ExcelExportView, self).__getattribute__(name)
@openerpweb.httprequest
def index(self, req, data, token):
@http.route('/web/export/xls_view', type='json', auth='user')
def index(self, data, token):
data = json.loads(data)
model = data.get('model', [])
columns_headers = data.get('headers', [])
rows = data.get('rows', [])
return req.make_response(
self.from_data(columns_headers, rows),
headers=[
('Content-Disposition', 'attachment; filename="%s"'
% self.filename(model)),
('Content-Type', self.content_type)
],
cookies={'fileToken': token}
)
#
# return req.make_response(
# self.from_data(columns_headers, rows),
# headers=[
# ('Content-Disposition', 'attachment; filename="%s"'
# % self.filename(model)),
# ('Content-Type', self.content_type)
# ],
# cookies={'fileToken': token}
# )

0
__unported__/web_export_view/i18n/de.po → web_export_view/i18n/de.po

0
__unported__/web_export_view/i18n/es.po → web_export_view/i18n/es.po

0
__unported__/web_export_view/i18n/fr.po → web_export_view/i18n/fr.po

0
__unported__/web_export_view/i18n/is.po → web_export_view/i18n/is.po

0
__unported__/web_export_view/i18n/nl.po → web_export_view/i18n/nl.po

0
__unported__/web_export_view/i18n/web_export_view.pot → web_export_view/i18n/web_export_view.pot

6
__unported__/web_export_view/static/js/web_advanced_export.js → web_export_view/static/src/js/web_advanced_export.js

@ -19,8 +19,9 @@
//
//#############################################################################
openerp.web_export_view = function(instance, m) {
openerp.web_export_view = function (instance) {
debugger;
var _t = instance.web._t,
QWeb = instance.web.qweb;
@ -92,7 +93,8 @@ openerp.web_export_view = function(instance, m) {
}
});
export_rows.push(export_row);
};
}
;
}
});
$.blockUI();

0
__unported__/web_export_view/static/xml/web_advanced_export.xml → web_export_view/static/src/xml/web_advanced_export.xml

Loading…
Cancel
Save