# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import json import re from markupsafe import escape from psycopg2 import IntegrityError from werkzeug.exceptions import BadRequest from odoo import http, SUPERUSER_ID, _, _lt from odoo.http import request from odoo.tools import plaintext2html from odoo.addons.base.models.ir_qweb_fields import nl2br from odoo.exceptions import AccessDenied, ValidationError, UserError from odoo.tools.misc import hmac, consteq class WebsiteForm(http.Controller): @http.route('/website/form', type='http', auth="public", methods=['POST'], multilang=False) def website_form_empty(self, **kwargs): # This is a workaround to don't add language prefix to