From f3cdd4184e3f91014a54c8eaa12c571d2dd4b5b6 Mon Sep 17 00:00:00 2001 From: KaySar12 Date: Thu, 29 May 2025 17:12:05 +0700 Subject: [PATCH] update temp --- extra-addons | 2 +- odoo/http.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/extra-addons b/extra-addons index 09210b0c8..7d14acd44 160000 --- a/extra-addons +++ b/extra-addons @@ -1 +1 @@ -Subproject commit 09210b0c84378222ad7a870cebfa112589aed1d7 +Subproject commit 7d14acd44be86d884d6125ff2808b416dd332e61 diff --git a/odoo/http.py b/odoo/http.py index 479981f6d..df4fc18bf 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -2360,7 +2360,8 @@ class Application: if self.get_static_file(httprequest.path): response = request._serve_static() - elif request.db: + elif request.db or httprequest.path.startswith('/preview-url/'): + request.db = httprequest.args.get('db', request.db).split('?')[0] if httprequest.args.get('db') else request.db try: with request._get_profiler_context_manager(): response = request._serve_db()