This is a backport of Odoo 16 request.future_response mechanism, to allow setting cookies in the response before the response is constructed.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Technical backport that lets Odoo 14 code set cookies on the final web response before that response is built, matching a mechanism available in Odoo 16.
This module does not add any screen, menu, report or business document. It is a small technical patch for developers.
In Odoo 14, when a web request is handled, the final response object is created only at the end. That makes it hard for code running earlier in the request to add a cookie, because there is no response object yet to attach it to. This module solves that by creating a placeholder object, called a future response, at the start of every web request.
- Every web request now carries a
future_responseplaceholder. - Developers can call
set_cookieon that placeholder at any point during the request. - When the real response is finally produced, the cookies stored in the placeholder are copied onto it automatically.
It touches the core web request handling (http.WebRequest and the root controller's get_response) and the werkzeug response class. No models, menus or user-facing features are defined. Because it changes core request behaviour, it is meant to be installed by developers or integrators who need this capability, not by regular business users.
Text generated by AI (DeepSeek) from reading the Odoo 14.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/server-tools.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.