# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import json from psycopg2 import IntegrityError from werkzeug.exceptions import BadRequest from odoo import http, SUPERUSER_ID, _ from odoo.http import request from odoo.tools import plaintext2html from odoo.exceptions import ValidationError, UserError from odoo.addons.base.models.ir_qweb_fields import nl2br 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