代码规范
This commit is contained in:
@@ -16,18 +16,14 @@ from odoo.tools.safe_eval import safe_eval, time
|
||||
from odoo.addons.web.controllers.report import ReportController
|
||||
from ..models.common import Common
|
||||
|
||||
|
||||
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ZplReportController(ReportController):
|
||||
|
||||
|
||||
#------------------------------------------------------
|
||||
# ------------------------------------------------------
|
||||
# Report controllers
|
||||
#------------------------------------------------------
|
||||
# ------------------------------------------------------
|
||||
@http.route([
|
||||
'/report/<converter>/<reportname>',
|
||||
'/report/<converter>/<reportname>/<docids>',
|
||||
@@ -57,4 +53,4 @@ class ZplReportController(ReportController):
|
||||
texthttpheaders = [('Content-Type', 'text/plain'), ('Content-Length', len(text))]
|
||||
return request.make_response(text, headers=texthttpheaders)
|
||||
else:
|
||||
raise werkzeug.exceptions.HTTPException(description='Converter %s not implemented.' % converter)
|
||||
raise werkzeug.exceptions.HTTPException(description='Converter %s not implemented.' % converter)
|
||||
|
||||
Reference in New Issue
Block a user