代码规范

This commit is contained in:
qihao.gong@jikimo.com
2023-11-24 10:30:33 +08:00
parent b73a449b01
commit deb732dc5e
6 changed files with 8 additions and 12 deletions

View File

@@ -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)