Daily updates from Odoo
Thursday, July 4, 2019
10 changes
New functionality added to Odoo
Odoo now lets system operations use elevated access without replacing the real user identity with the main administrator account. This improves auditability and traceability while preserving needed background and controller behavior across many apps.
Original PR description
The environment has an extra parameter, the _superuser mode_ flag `env.su`, that bypasses access rights checks. The behavior of method `sudo()` is now to return the recordset attached to an environment _with the same user_ but in superuser mode. By convention, the superuser (uid=1) is always in superuser mode, so the access rights short-circuit only needs to check the flag `env.su`. ```python records_sudo = records.sudo() # same uid, but su=True records = records_sudo.sudo(False) # same uid, but su=False records_demo = records.with_user(demo_user) # other uid, su=False records_su = records.with_user(SUPERUSER_ID) # uid=1, su=True (because uid=1) ``` This feature should improve the traceability of operations (done by the real user instead of user 1).
Enhancements to existing features
Users now receive more specific explanations when an action cannot be completed because required information is missing, a referenced record is unavailable, or a linked record cannot be deleted. This helps users understand what went wrong and how to resolve it without needing technical support.
Original PR description
Purpose of this task is, To provide the user with more information regarding why he cannot complete his operation, whether this is due to required fields not set, referenced records not found, or referenced records that cannot be deleted. So, I raised specific detailed ICV error messages that tells the user what is going on Task: 1970853 Pad link: https://pad.odoo.com/p/r.7ac4b16ccab2927317768362e5b18c1c
Resolved issues and error corrections
Sales orders, project tasks, timesheets, and holiday-related timesheets now keep the correct company attached when records are created or converted into related documents. This reduces cross-company mistakes, access issues, and billing inconsistencies for businesses operating multiple companies in Odoo.
Original PR description
Impacted modules: project, sale, sale_timesheet and project_timesheet_holidays. Since a5b6f31cf28e5381e1c85f66730bcdb55998e643, the multi company environment is contextualized, allowing people to see several company documents at the same time. This reveals some problem in such env. To solve this, we need to force the "company_id" field as required on some business model, and to correctly propagate the company when a document generate another one. The guidelines is to stop using company of current user, but the one of the document itself. See subcommits for more details. Task-1999686
This fix stops users from validating a bank statement that is still linked to an open Point of Sale session. It prevents payment methods from disappearing in the POS and ensures the session must be closed properly before the statement can be validated.
Original PR description
Description of the issue/feature this PR addresses: There is no more payment methods in the pos after validating a bank statement of opened session. Current behavior before PR: After validating a bank statement from the current session of the POS, we do have access to the pos front end but we can't pay because we don't have payment methods anymore. Desired behavior after PR is merged: This is not possible to validate a bank statement that's used in a pos session. The only way to do it is to now is to close the session. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes a visual issue where the search panel and onboarding content did not display together cleanly in the web interface. Users get a more polished and usable screen layout when onboarding guidance appears alongside search navigation.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR:  Desired behavior after PR is merged:  -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Point of Sale now prevents unpaid orders from disappearing when a session is closed. Open unpaid orders can be recovered in a later session, reducing lost sales and avoiding confusion for cashiers and managers.
Original PR description
Steps to reproduce: Open a POS session and add an order with a few items on it, but don't submit a payment for that order. Exit, close and validate/post the POS session Open another POS session Current behavior: The unpaid order vanished into Never Never Land, never to be found again. Expected behavior: Either an error should be displayed when trying to close a session with outstanding orders, or any open orders should be automatically moved to the next open session. If I had the choice, I would much prefer the second option, plus a warning message when closing the session. opw-1918354
This update resolves several operational issues affecting checkout account restrictions, accounting balance errors, payment terminal wording, printer stability, website links, attachment paging, and inventory costing. It also refreshes translations, improving reliability and usability across multiple Odoo apps.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix ensures the Ponto bank integration is automatically installed when accounting is set up for companies in Europe. It reduces manual setup and helps eligible businesses access bank connectivity more smoothly.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The accounting dashboard now shows the remaining amount due on invoices and bills instead of the original total amount. This gives users a more accurate view when payments have already been made, helping them track real outstanding balances.
Original PR description
If there are payments made on Invoices and Bills, then the dashboard really shows an incorrect amount - it still shows the AMOUNT TOTAL of the Invoices and Bills. With this change, the dashboard will show the AMOUNT DUE for Invoices and Bills. This is a MASTER based PR with the same description as https://github.com/odoo/odoo/pull/25859 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update changes how elevated access is handled so actions still respect the real user's context where needed. It reduces surprising behavior in workflows such as documents, helpdesk, payroll, inter-company rules, marketing automation, subscriptions, and signing, improving reliability without changing day-to-day features.
Original PR description
See odoo/odoo#34297.