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

This commit is contained in:
Holger Brunn
2013-10-21 13:57:07 +02:00
committed by Pedro M. Baeza
parent d7276a4739
commit bf5b02d5a2

View File

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