75c98684fec8c3c71f317eb6baf1bfcadbbd2673
When you have a journal configure to create add e-fff xml file to integrate into the invoice, you get an access error when the user that prints the invoice is not the same as the user that has posted the invoice. To avoid this issue, we are calling the '_prepare_invoice_report' with an edi_document in sudo. The issue comes from that the attachment_id on the account.edi.document has no res_id and res_model (to be hidden in the chatter of the invoice). So to get access to such attachment, you need to have the same 'create_uid' or being a 'Setting' user. The issue was not present in saas-15.3 because the reports were executed in sudo, so everything was accessible. To easily reproduce: - create a company in belgium - activate E-FFF edi on the sales journal - create and post an invoice with the user A - print it with the user B (that is not an administrator closes odoo/odoo#109702 X-original-commit: 87716488670b0ba4619d7e8c49e99dfd61ff88d7 Signed-off-by: William André (wan) <wan@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, ...
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.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%