Daily updates from Odoo
Friday, August 23, 2019
17 changes · master
Enhancements to existing features
This update renames internal labels used in sales variant templates to match the naming style used elsewhere in the system. It does not change business workflows or visible features, but it makes future sales-related development easier to review and maintain.
Original PR description
To follow the naming convention used in the rest of the code. - `variant_id` (which made no sense in this case) -> `ptal` - `value_id` -> `ptav` Split commit to make the diff of a following PR easier to read. Part of task-1912579
This update improves the reliability of Odoo's automated web tests by better isolating browser sessions, reducing Chrome-related instability, and improving diagnostics when Chrome crashes or cannot be reached. It helps reduce noisy build failures and makes test results more trustworthy for development teams.
Original PR description
* add a delete_cookie method to ensure session cookie is removed * add various disable switches * log google-chrome crashes
The Documents shortcut for requesting a document is now hidden from employees who do not have access to the Documents app. This keeps the activity menu cleaner and prevents users from seeing an option they cannot use.
Original PR description
Currently everyone can see the "Request a Document" call to action in the systray under the activities icon. But this should take the access rights into account. If one is not a user or an admin of the Documents app, he/she should not see the "Request a Document" feature in the systray. Task- https://www.odoo.com/web?#id=2034580&action=327&model=project.task&view_type=form&menu_id=4720 Pad- https://pad.odoo.com/p/r.201fd81fd4e99d0deb6bf406d4f24ff5
Resolved issues and error corrections
This fix ensures pending database changes are properly applied when using savepoints. It reduces the risk of inconsistent data handling during internal operations, improving overall system stability.
This fixes account bank statement creation so it no longer attempts to rewrite the linked journal type when nothing needs to change. It reduces avoidable validation conflicts, especially for localizations with stricter journal rules, and makes statement creation more reliable.
Original PR description
### Description of the issue/feature this PR addresses: Do not try to write the journal's type field every time we try to create an account.bank.statement record. ### Current behavior before PR: As it is, is trying to write the journal type field every time we create an account.bank.statement record, even when the value we try to write is the same already assigned in journal. We found out this behavior thanks to a constraint we add to the account.journal model's in l10n_ar module that take into account the 'type' field- ### Desired behavior after PR is merged: With this new change we are not trying to overwrite the journal's type field. only using it from account.bank.statement. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This change lowers the severity of a specific automated test message from warning to informational. It helps prevent internal merge automation from treating harmless test cleanup messages as failures, improving development workflow stability without affecting users.
Original PR description
When an HttpCase browser_js test is unable to join a request thread, a warning is logged. To avoid mergebot failures, this commit changes the warning to a log info. This problem was introduced by the refactor in this commit: 3ca788f55
This fixes an issue in inventory calculations where empty or missing values could be handled incorrectly. The change helps ensure stock inventory information is computed reliably, reducing the risk of inaccurate inventory results.
Original PR description
task-2058684
This fix prevents Odoo from trying to set a translation source value before a record has been saved. It helps avoid unnecessary errors during record creation, making data entry and automated creation flows more reliable.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update helps the IoT driver handle socket connection errors more safely. It reduces the risk of disruptions when the system tries to open a new socket and the operating system reports a problem.
Original PR description
With this commit we catch OS Error when want use a new socket 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
This fix changes the customer-facing display text color to white so it remains readable on the point-of-sale screen. It improves the checkout display experience for customers with a small visual correction.
Original PR description
We replace the font color to white of customer display 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
This fixes an accounting issue by removing a company ownership field that was not useful and did not work correctly. The change helps avoid confusing or unreliable information in accounting views and records.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an error in the Expenses app that could occur when opening or using a tax-related field. The correction restores the expected filter behavior so users can continue entering expense information without a traceback.
Original PR description
Back2basics changed the context in the views and actions from `type_tax_use` into `default_type_tax_use`, but also changed the one used in the domain of a field which caused a traceback 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
This fix restores the expected default behavior for account move line lists so users can see expanded line details immediately. It corrects a regression where prior changes accidentally removed the settings that controlled this view behavior.
Original PR description
The commit c429c0e0bd1208694623d5567682c43f9f0e51b7 removed context keys that were used to expand the view The the commit 98a55917a602c0c47093b4270ebc4e8b416ecf32 fixed that The the commit 9bc4a19d74185a066b7ac870b02fd1836c4392b6 reintroduced it (prob. bad rebase) This commit re fixes that. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an error that could prevent forum post forms from opening when a tag had a color set. Removing an outdated view reference restores normal access to forum posts and avoids disruption for website forum managers.
Original PR description
Description of the issue/feature this PR addresses: Remove the no longer existing field from the view definition Current behavior before PR: There is a traceback if you set a tag with a color on it:  You can reproduce it on the latest Odoo master builds by going to Website > Forum > Posts and opening the post "How to configure alerts for employee contract expiration" Desired behavior after PR is merged: There is no longer a traceback and the form view opens: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix improves how salary contract changes are handled when an operation needs to be cancelled. It helps prevent inconsistent saved data, reducing the chance of errors for HR teams using salary package features.
This fixes an issue where quality control checks and points could behave incorrectly when certain values were empty or unset. It helps keep quality workflows reliable and prevents incorrect results caused by missing data.
Original PR description
on check and point task-2058733
This update fixes cases where pricelist fields were hidden or mislabeled in rental, stock rental, and subscription product screens. Users can now see the right pricing options when pricelists are enabled, reducing confusion during sales setup.
Original PR description
Closes https://github.com/odoo/odoo/issues/35886