Daily updates from Odoo
Thursday, August 16, 2018
16 changes · master
New functionality added to Odoo
This adds a new option that lets developers place newly added dropdown choices before a specific existing choice. It helps customizations present options in a more logical order without replacing the full original list.
Original PR description
add option 'selection_add_before' to selection fields to define selection_add position.
Description:
origin selection looks like [('b','B'),('c','C')]
It will used like:
fields.Selection(selection_add=[('a', 'A')], selection_add_before='c')
('a', 'A') will be added before ('c','C'), the final selection is:
[('b','B'), ('a', 'A'), ('c','C')]
Same as #9936 , this one is for master branchSales users can now access product categories directly from the product configuration menu. This makes it easier to organize and manage products without needing another app menu.
Original PR description
Description of the issue/feature this PR addresses: If you install `sale` module is not possible use the important menu to `product.category` Desired behavior after PR is merged: - Adds the menuitem to sale module: -  Note: I just copied from [purchase/views/purchase_views.xml](https://github.com/odoo/odoo/blob/20f2de82965ed782f14f4154f750853ae5c297f8/addons/purchase/views/purchase_views.xml#L29-L32) -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Enhancements to existing features
Task lists now show planned hours using the same time format as other time-related fields. This makes planned work easier to read and allows planned hours to be summed directly in the list view.
Original PR description
Use float_time widget for planned_hours in task tree view Description of the issue/feature this PR addresses: Currently the float_widget is used for all time related fields in the task tree view except for planned_hours. Current behavior before PR: No use of float_widget Desired behavior after PR is merged: Use float_widget and sum the planned hours. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update adds clear internal names to sales page sections so future customizations can target the right areas more safely. It reduces the risk of changes breaking when page order changes, helping maintain sales screens more reliably over time.
Original PR description
Description of the issue/feature this PR addresses: It is hard to xpath on the pages right now as they have no names. Current behavior before PR: You'll have to do `//page[2]` which is risky to break and page indexes can move. Desired behavior after PR is merged: Ability to xpath on name `//page[@name='other_information']` Followup of https://github.com/odoo/odoo/pull/25807 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Rating information is now calculated when needed instead of being kept as a stored value. This helps keep ratings accurate and reduces the risk of outdated rating data appearing in project-related views.
Original PR description
Task: https://www.odoo.com/web#id=51523&view_type=form&model=project.task&action=333&active_id=965&menu_id=4720
Resolved issues and error corrections
This fixes an issue where journal dashboard graphs could fail to render because they were drawn before being added to the page. The graph now renders only once it is attached, making dashboard visuals more dependable for users.
Original PR description
The lib 'nvd3' renders graph when they are attached in the
DOM. However, widgets are rendered in fragments and
appended to the DOM when ready (to prevent flickering).
Before this commit, we used a `setTimeout(0)` and cross
fingers that the widget was attached to the DOM when the
`render` method was called.
With this commit, the render method is called when it is
attached to the DOM.
Task-ID 1868252Odoo can now install the Account app even when an optional testing dependency is not installed. Tests that require browser automation are skipped with a warning instead of causing an installation error, reducing setup issues for environments that do not run those tests.
Original PR description
The account module needs to import Form from "tests.common" causing a traceback when websocket-client module is not installed. As this module is only required for the tests, there is no reason to add it to the "requirements.txt" file. With this commit, Odoo account can be installed even when websocket-client is not installed, in that case, the HttpCase tests that needs to run Chrome headless will be skipped with a warning. 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
The accounting dashboard now shows sales and purchase journal history graphs correctly. This helps finance users read dashboard trends more reliably without confusing visual display issues.
Original PR description
Description of the issue/feature this PR addresses: Task link https://www.odoo.com/web#id=1868252&action=327&model=project.task&view_type=form&menu_id=4720 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
Bank statement errors now include the relevant reconciled entry name or number. This helps users identify and correct the problematic statement line faster, especially when reviewing longer statements.
Original PR description
Before this commit, a cryptic error message did not actually lead to resolution. By giving the reconciled name/number, the users get's a chance to identify the offending entry and correct it. This way this error message becomse a little more actionable. **Description of the issue/feature this PR addresses:** - Non actionable error message on bankk statments **Current behavior before PR:** - The error message was so unspecific, that it was impossible to identify the offending line - At least, if a statement had more than a handful lines **Desired behavior after PR is merged:** - The error message is (somewhat) actionable **Note:** Please do not close, even if not immediately accepted (`wishlist` tag). This PR is meant to be carried along and actively maintained, until this semantic will be completed this way or another. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr @xoe-labs
Project tasks created from sales orders no longer show the graph icon twice. This keeps the task screen cleaner and avoids confusion for users navigating project reporting options.
Original PR description
Current behavior before PR: Graph icon is shown twice on project task coming from sale Desired behavior after PR is merged: Graph icon is shown only once on project task coming from sale -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Completed manufacturing orders now display their stock movement lines in a muted style instead of incorrectly showing them as red. This avoids visual confusion for users reviewing finished production orders and makes the status clearer.
Original PR description
Issue-Link: https://www.odoo.com/web#id=1862299&action=333&active_id=1278&model=project.task&view_type=form&menu_id=4720 Pad-Link: https://pad.odoo.com/p/r.078f3d8fb2efa8356d503e9bfd7b8ebc Before this commit: Red movelines can be seen instead of text-muted movelines after MO done. After this commit: text-muted class has been applied to movelines after MO done. Issue-ID: 1862299 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update adjusts the website dashboard layout to avoid display issues caused by unnecessary row structure. It helps make dashboard information appear more consistently for users managing website and online sales activity.
Original PR description
Layout issue in website dashboard:- https://drive.google.com/file/d/1hGzCwYQjShlRcF-vrRz0h6GqoS_m2W3_/view 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
Code cleanup and technical improvements
This change separates how purchase and supplier invoice counts are calculated for partners. It makes the underlying process clearer and helps avoid permission-related issues when showing supplier invoice information.
Original PR description
**Description of the issue/feature this PR addresses:** - Purchase/supplier invoice computation **Current behavior before PR:** - With only one method, we need access on purchase.order to compute supplier_invoice_count **Desired behavior after PR is merged:** - Split computation of purchase/supplier invoice counts. In order to improve code readability and avoid access issues. ------------------- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The test infrastructure now uses Chrome in headless mode instead of the discontinued PhantomJS tool. This should make automated JavaScript testing more stable and better supported over time, reducing false failures in development and quality checks.
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
The email composer was reorganized to be more separate from underlying message records. This should make future maintenance safer and reduce the chance of unintended side effects in mail workflows, with little immediate user-facing change.
The mail message composer was reorganized to reduce its dependency on the regular mail message model. This is an internal cleanup intended to make the messaging code easier to maintain without changing day-to-day user workflows.
Original PR description
To check: keep inherit but still rewrite part of the code Task: https://www.odoo.com/web#id=1832038&view_type=form&model=project.task&action=333&active_id=965&menu_id=4720 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr