Since [1] the odoo `Response.set_cookie` signature is different from the one of `werkzeug.wrappers.Response`. This commit wraps responses into odoo Responses between setting cookies. [1]: https://github.com/odoo/odoo/commit/2cbda6c98ee947cea1d06c09880eee8c758304a8 X-original-commit: 6a2675fd4d0cc2cb0e23a4b4c5aaf62a1568be50 Part-of: odoo/odoo#112827