diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-08-22 11:38:04 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-08-22 12:56:49 +0200 |
| commit | c35bf5a845657606718fa751c20b17bb0e62789c (patch) | |
| tree | 82b8a3a1a25e3062e6adda635722dae50bf27731 /addons/web/static/src/js/widgets/user_menu.js | |
| parent | 71e25559ce98ddff87bde7be01a45ed85ad29ca5 (diff) | |
[FIX] web: Set correct debug mode value in headers variable 'X-Debug-Mode'
For the need of the next commit, we have to know when making a request from an RPC call in which debug mode we are. Previously, the value was always 'true' if we were in debug mode. Now it will return 'true' if we are in simple debug mode and 'assets' if we are in the other one. (this is the current behavior for the simple WebRequest).
Why do we need to know that? When loading the settings dashboard, an rpc request to /web/dataset/call_kw to load the view is accessing the odoo.debug @property method. This value is used in the template to decide which buttons to display to activate or deactivate the debug mode.
Diffstat (limited to 'addons/web/static/src/js/widgets/user_menu.js')
0 files changed, 0 insertions, 0 deletions
