Tuesday, July 16, 2024
2 changes · saas-17.2
Resolved issues and error corrections
Fixes an error that prevented users from printing invoices for Saudi companies. This ensures confirmed invoices can be printed normally, avoiding disruption in billing and compliance workflows.
Original PR description
When the user tries to print the invoice for the Saudi company, a traceback will appear. Steps to reproduce the error: - Install "l10n_sa" - Switch to "SA Company" - Create a new invoice > Confirm > Print the invoice ``` Error: A traceback appears: "AttributeError: 'res.lang' object has no attribute '_lang_get_direction'" ``` https://github.com/odoo/odoo/blob/382e79857535cc0a404a8f70fbef071b79afea86/addons/l10n_gcc_invoice/views/report_invoice.xml#L285 Here, "_lang_get_direction" method is still used, this method is replaced by "_get_data" method in commit odoo@9f5470f. sentry-5596797662 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Sharing a public project in read-only mode with a portal user now also grants access to the project's tasks. This aligns portal user access with public share-link behavior and prevents invited users from seeing an incomplete project page.
Original PR description
To reproduce the bug: - Have a project with no customer on it - In the project setting switch the 'Visibility' to 'Invited portal users and all internal users (public)' - Share the project with readonly access mode with a portal user (Joel) - Sign in as Joel and check the project page We can see that contrary to the page a public client get with using the share link with access token, we can't see the project tasks. More specifcly we need to be followers of these tasks to see them. This fonctionnement is already implimented in the case of adding follower from the chat section instead of the Share button, furthermore it means that the public user. This commit aim to change that behavior and make the share with readonly mode imply following all the project task. opw-4038154