Browse Source

[FIX] don't show export format for current view in export list

pull/4/head
Holger Brunn 11 years ago
parent
commit
b167c9a7ff
  1. 5
      web_export_view/controllers.py

5
web_export_view/controllers.py

@ -31,6 +31,11 @@ from web.controllers.main import ExcelExport
class ExcelExportView(ExcelExport): class ExcelExportView(ExcelExport):
_cp_path = '/web/export/xls_view' _cp_path = '/web/export/xls_view'
def __getattribute__(self, name):
if name == 'fmt':
raise AttributeError()
return super(ExcelExportView, self).__getattribute__(name)
@openerpweb.httprequest @openerpweb.httprequest
def index(self, req, data, token): def index(self, req, data, token):
data = json.loads(data) data = json.loads(data)

Loading…
Cancel
Save