Daily updates from Odoo
Wednesday, August 22, 2018
14 changes · master
New functionality added to Odoo
Users can now see when someone is typing in Odoo chat and live chat conversations, improving responsiveness and making conversations feel more immediate. The update also standardizes how temporary notifications are sent, reducing confusion and access issues behind the scenes.
Original PR description
Task : https://www.odoo.com/web#id=28188&view_type=form&model=project.task&action=333&active_id=248&menu_id=4720 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Adds a new batch picking report that organizes warehouse picking operations by location instead of only by picking. This helps warehouse teams review and execute grouped operations more efficiently by following the physical layout of stock locations.
Original PR description
Description of the issue/feature this PR addresses:
Task: https://www.odoo.com/web#id=35645&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720
Pad: https://pad.odoo.com/p/r.6fd256dc3fa277cf946bcc88aeb21e4d
Current behavior before PR:
- In current master stock_picking_batch report generated by picking.
Desired behavior after PR is merged:
- stock_picking_batch report generate by location.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prEnhancements to existing features
Inventory adjustment lines now stay limited to the product chosen for the adjustment. This prevents users from accidentally counting or updating a different product, improving accuracy during stock checks.
Original PR description
Pad:https://pad.odoo.com/p/r.ee3732b1873154647589c53ef755dc95 Task:https://www.odoo.com/web#id=1861241&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 purpose: When I create an inventory adjustment and select an inventoried product, I should then only be able to select that product in the inventory details lines. before this commit, I select the inventoried product (set by default,editable when adding a new line) after this commit, I should only be able to select the inventoried product (set by default, readonly when adding a new line) Closes: # Task: 1861241 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
Sales and profitability reports now load faster when orders involve multiple currencies and exchange rates. The change stores the relevant exchange rate directly on each sales and point-of-sale order, reducing the work needed to build reports.
Original PR description
This speed up a lot reports like sale.report when multiple currencies with multiple rates are used, even with few currencies and few rates. 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
Product quantity values now load much faster in large stock databases by avoiding unnecessary stock move records during calculation. This improves screen loading times for inventory-heavy businesses, especially where many historical stock moves are completed or cancelled.
Original PR description
Description of the issue/feature this PR addresses: Quantity fields computation on products can become very slow when there are a lot of stock move in the database. I did most tests in version 8, but…
Description of the issue/feature this PR addresses: Quantity fields computation on products can become very slow when there are a lot of stock move in the database. I did most tests in version 8, but the behavior is the same in master. In a database with more than 5 million stock moves, the computation of the qty fields when loading a view with 80 products was around 4.9 seconds. After the fix, it became 0.3 seconds. On database with very few stock moves, it won't make a difference. but when there are more stock move done and cancel than waiting/assigned/confirmed, then the performance will be better. The only risk I see of this change, is if a module add a stock move state. I minimized the diff in this PR, but to we could add a hook method like `def _get_domain_move_state` to return the domain. This way, if a module adds a state on stock_move table, it could also override this method if needed. Current behavior before PR: Very slow computation of quantity fields on products Desired behavior after PR is merged: Fast computation of quantity fields on products -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The gamification app now includes improved report templates and supporting visuals for tracking goals and challenges. This makes performance reporting clearer and more useful for users managing engagement programs.
Original PR description
task: https://www.odoo.com/web#id=30824&view_type=form&model=project.task&menu_id=5200 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Records created from incoming emails can now automatically create or link the sender as a contact and subscribe them to future replies. This helps ensure applicants, leads, and task contacts receive follow-up messages instead of being left out of the conversation.
Original PR description
Linked task : https://www.odoo.com/web#id=46151&view_type=form&model=project.task&action=333&active_id=965&menu_id=4720
Maintenance teams can now record when equipment or tools are actually put into service. Preventive maintenance schedules use this effective date to calculate the next planned maintenance, making servicing timelines more accurate.
Original PR description
- calculate next preventive maintenance according to effective date Task: https://www.odoo.com/web#action=333&active_id=131&id=33188&menu_id=4720&model=project.task&view_type=form Pad: https://pad.odoo.com/p/r.f54f7024d107dcfb92e4db5ce0bce61b 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
Maintenance planning now calculates the mean time between failures using the equipment's effective date and its first maintenance request. This improves preventive maintenance scheduling so teams can better anticipate service needs and reduce avoidable downtime.
Original PR description
…1st maintenance request Task: https://www.odoo.com/web#id=33188&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720 Pad: https://pad.odoo.com/p/r.f54f7024d107dcfb92e4db5ce0bce61b
Resolved issues and error corrections
This fix restores a helpful stock inventory error message that tells users which product is causing a problem. It helps teams resolve inventory validation issues faster, especially when working with large inventories.
Original PR description
Restore bbc9b329b5962c0e208a7abe33d5d853aaa49fc2 after it has been unintentionally wiped out in ba5918ffcbe5fe9155308c53e014e5e93c588ca6 See also: https://github.com/odoo/odoo/commit/ba5918ffcbe5fe9155308c53e014e5e93c588ca6#commitcomment-30056673 **Description of the issue/feature this PR addresses:** - Very user **un**friendly error message (not helpful at all) in stock inventories **Current behavior before PR:** - The user has almost no chance to find the error in reasonable time if the inventory is somewhat larger **Desired behavior after PR is merged:** - The user gets to know the offending product and can review his pending inventories more specifically. **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
This fixes issues when editing required fields and multi-line text boxes inside embedded list records. Users can now move between lines reliably with Enter or Tab, and text areas size themselves correctly as content changes, reducing editing friction and display glitches.
Original PR description
TASK: 1869469
PDF previews now use the proper viewer styling from the core web module instead of depending on the Manufacturing module. This makes PDF documents easier to read and consistently sized for users even when Manufacturing is not installed.
Original PR description
Description of the issue/feature this PR addresses: I use the pdf_viewer widget,without the mrp module installed.The pdf is displayed with a very small size. mrp module has a scss file make the pdf_viewer better.I think this file should be put in web module.So then we can use pdf_viewer well without mrp installed. Current behavior before PR: <img width="1103" alt="pic1" src="https://user-images.githubusercontent.com/5561864/44310011-f9f05580-a401-11e8-98d3-9f29a6e3a08e.png"> Desired behavior after PR is merged: <img width="1118" alt="pic2" src="https://user-images.githubusercontent.com/5561864/44310012-ffe63680-a401-11e8-8340-923da347da05.png"> -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an error that could block payment of supplier invoices when cash basis accounting is enabled. Payments can now be completed without the system failing due to an internal date comparison issue.
Original PR description
Steps to reproduce: 1.- Configure your instance to generate cash basis moves 2.- Generate a new supplier invoice 3.- Try make the payment of that invoice. I get the next error: `TypeError: '>' not supported between instances of 'datetime.date' and 'str'` Was fixed like https://github.com/odoo/odoo/commit/960360afe478a8f7b9c456721b5591154952a37d#diff-dd671a54296b170ea1393dca1a5f7798R1612  -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Code cleanup and technical improvements
Inventory updates that reduce product quantities to zero now handle cleanup more efficiently. This significantly reduces processing time for large inventory adjustments, helping teams complete stock corrections faster and with less system slowdown.
Original PR description
It is possible that a call to `_action_done` will unlink a quant. This happens when moving a product from a location to another one and makes null the quantity of this product in one of theses locations. In this case, we unlink the quant because it is now useless and could be confusing on reports based on quants. The unwanted side effect is that unlinking a record will invalidate the cache. In some pathologic cases, like making an inventory adjustment of 600 products and reseting their quantity back to 0, the time of the operation is around 15 minutes. With this patch that tries to work carefully with the cache invalidation, the same operations takes around 40 seconds. 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