Daily updates from Odoo
Wednesday, July 31, 2019
9 changes
Resolved issues and error corrections
This fixes an issue where connecting IoT serial devices could prevent Bluetooth devices from working. Serial devices now use stable device locations that avoid interfering with Bluetooth connections, improving reliability for connected hardware setups.
Original PR description
Using path such as '/dev/ttyUSB0' to connect to a serial port makes it impossible to use the bluetooth. We now use the locations in '/dev/serial/by-path' to connect to serial port, which does not affect bluetooth connections -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes Point of Sale invoicing so product costs are calculated using the correct FIFO stock valuation history. Businesses using Anglo-Saxon accounting will now see accurate cost of goods sold and stock output amounts on POS invoices.
Original PR description
Reproduce: 1. I create a product with fifo and real_time valuation (make sure the invoicing policy is 'delivered' and make it available in pos). 2. set the cost of the product to be 5.0 and sale…
Reproduce:
1. I create a product with fifo and real_time valuation (make sure the invoicing policy is 'delivered' and make it available in pos).
2. set the cost of the product to be 5.0 and sale price to be 10.0.
3. I update its inventory and set 5 items. -> total valuation of 25.
4. I change the cost of the product to 1.0.
5. I update again the quantity to 10, making the valuation of the product to 30.0.
6. I configure point of sale to allow invoicing.
7. Open a pos session then sell 7 items of the product (invoice the order).
8. Since the product is fifo, this means that the cost of goods sold is 5 * 5.0 + 2 * 1.0 = 27.0.
9. The correct expense account line should have balance of 27.0.
10. The correct output account line should have balance of -27.0
However, instead of 27.0 as stock valuation amount, the value in the
pos.order invoice is currently 7 * 2.0 = 14 -- and this is wrong. It is
not taking into account the value of the previous stock
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-prTest runs now include detailed error information when failures happen inside subtests. This helps teams diagnose broken tests faster instead of seeing only a final count of errors and failures.
Original PR description
Since Testresult addSubTest append directly to error and failures instead of calling addError and addFailure, we need to ovewrite addSubtest too. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update fixes how product pricelist information is rendered by using the currently supported template option. It helps keep pricelist reports displaying correctly and avoids issues from an outdated template setting.
Original PR description
Description of the issue/feature this PR addresses: `t-esc-options` was removed in favor of `t-options`. 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 a problem where certain online service errors were routed to the wrong handler, causing customized error handling to be skipped. As a result, related failures should now be handled cleanly instead of producing unnecessary traceback errors.
Original PR description
with this commit https://github.com/odoo/odoo/commit/e6d4ab84da7a1031ab552b4a6b3fc4aa2348163e we moved rpc_error binding into the crash_manager. CrashManager initialize instantaneously and does not wait for overriding via include and so the bus is having a wrong reference of the 'rpc_error' method that's why overridden methods are never called. Due to this iap error handling is broken and generating trackback. This commit will fix those issues by using the correct reference of 'rpc_error' method. task-2032126
This update fixes issues in how Odoo handles application crashes and warning messages, reducing duplicate service behavior and improving reliability. Backend users will again see warnings as modal dialogs, while website/front-end warnings remain as toast notifications for a smoother visitor experience.
Original PR description
* gamification, website_forum, stock Fix for: https://github.com/odoo/odoo/pull/32132 Some problems with the mentioned PR had to be fixed and after some discussions, it was decided to revert back to the original crashmanager warnings for the backend. See sub-commits for details.
This fix changes how IoT serial devices are identified so they no longer interfere with Bluetooth connections. Businesses using IoT hardware should see more reliable connectivity when both serial and Bluetooth devices are present.
Original PR description
Using path such as '/dev/ttyUSB0' to connect to a serial port makes it impossible to use the bluetooth. We now use the locations in '/dev/serial/by-path' to connect to serial port, which does not affect bluetooth connections
This update keeps Studio's list view editor aligned with a recent internal change in how list column visibility is calculated. It helps ensure hidden or invisible columns are handled correctly when editing list views in Studio.
Original PR description
The _processColumns function of the list renderer which computes the visibility of the columns has been moved in willStart rather than init, so the studio overide had to be moved as well.
This fix updates account reports and cohort views to use the shared error handling service correctly. It prevents duplicated internal service state, improving stability when errors occur without changing day-to-day workflows.
Original PR description
* = account_reports, web_cohort crash_manager.js was using the services while bypassing ServiceProviderMixin That means all services are duplicated, each having their own state. crash_manager is now registered in serviceRegistry instead of being instanciated on the fly. We have to use ServiceProviderMixin to retrieve it now. Related to https://github.com/odoo/odoo/pull/35209