4c9624db9d4656457f4100ee2e848f0f81d264a9
This commit fixes the /report/download route in multicompany Since the multi company revamp (a5b6f31cf2) the multi company rules depend on the context. However the route /report/download was not forwarding any context, this meant that when trying to read some fields on a record in a company that is different than the default one, it would crash with the multi company ir.rule Forwarding the context from the session in the Javascript call is quite simple however since (521f7d36c1) it also requires to change the signature of the `report_download` method in order to pass the context to the final method. As there was already some code allowing the adding of some context in `report_routes` this PR reuses this code by simply passing the context as a kwargs. closes odoo/odoo#36839 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%