Monday, July 11, 2022
6 changes · master
Enhancements to existing features
Knowledge users can now add a dynamic table of contents that lists the headings on a page. This makes long articles easier to navigate, with clicks scrolling directly to the selected section and briefly highlighting it.
Original PR description
Purpose ======== Allow users to create a table of contents dynamically listing all headers in the page. When clicking on a section name, the page will scroll (both in back end and front end view) to the selected heather and highlight it for a brief interval of time. Task-2818474 Co-authored-by: Aurélien Warnon <awa@odoo.com> Co-authored-by: julien-banken <jbn@odoo.com> Co-authored-by: abd-msyukyu-odoo <abd@odoo.com> Co-authored-by: fbarbe00 <faba@odoo.com> 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 update restores clearer reporting for automated test results, making it easier for teams to monitor quality and spot problem areas. It also improves the accuracy of database activity measurements during tests, helping developers investigate performance issues more reliably without affecting end users.
Original PR description
Uses a dedicated logger (for easier filtering / silencing) for results output, and provides rough (module-level) stats in INFO but detailed (test-level) in DEBUG. Also modifies the global query counter (`odoo.sql_db.query_counter`) to update after each query rather than on close: with test cursors the actual underlying counter is only rarely flushed. This allows using the global query count to track query counts using tests, under the assumption that the tests themselves don't run concurrently. This is both much simpler and more precise than trying to find the current test's cursor and messing about with it, especially during the class setup phase.
Odoo now better detects video meeting links from Outlook events and stores them as the event’s video call location. This helps users join Teams or other online meetings directly from synced calendar entries instead of searching through the location field.
Original PR description
Basically, a Outlook event may contain a videocall URL in 2 different ways: 1) the event location may be a specific URL (such as `https://teams.microsoft.com/...`). In this case, we use it as `videocall_location` instead of classic `location`. We use a list of patterns to identify these specific URLs among classic locations. 2) the event may have an attribute `isOnlineMeeting` set to `True` and the attribute `onlineMeetingUrl` set with the URL. In this case, we use this `onlineMeetingUrl` as `videocall_location`. opw-2601669 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Manufacturing work orders now receive the correct expected duration automatically when production orders are created outside the standard form flow. This makes integrations such as XML-RPC easier and reduces the risk of incorrect planning times being set manually.
Original PR description
With this revision, the expected duration is correctly set when creating a production order with work orders without the need of onchanges, through a form. For instance, this allows an easier…
With this revision, the expected duration is correctly set
when creating a production order with work orders without the need of
onchanges, through a form.
For instance, this allows an easier implementation to create a production
order with work orders through XMLRPC API calls,
as you will not need to manually set the expected duration value
or to call onchanges manually to set it.
For instance, without this change to remove the `default=60.0`,
the part added by this revision in the test `test_update_quantity_3`
would fail
```
2022-07-11 09:15:14,644 21 ERROR master odoo.addons.mrp.tests.test_order: FAIL: TestMrpOrder.test_update_quantity_3
Traceback (most recent call last):
File "/home/odoo/src/odoo/master/addons/mrp/tests/test_order.py", line 347, in test_update_quantity_3
self.assertEqual(production.workorder_ids.duration_expected, 90)
AssertionError: 60.0 != 90
```
while it just does the same thing than the existing `test_update_quantity_3` test
but without the use of a form / onchanges.The signing dialog buttons were updated to make the main signing action easier to find and understand. Users now see clearer button labels, a less prominent cancel option, and faster movement to the next required signing field.
Original PR description
In this commit , we improve the visibility of sign all button,change the name of adopt and sign button to sign and converted cancel button a btn-link. Previously the animation of scrolling when clicking on next but was 1000ms which is reduced by 500 ms .
Account setup was adjusted to avoid a conflict that could interfere with choosing the right account type. This makes creating accounts smoother and reduces the chance of confusing behavior for accounting users.
Original PR description
Needed for task 2888204 _onchange_user_type_id in account_disallowed_expenses overwrites _onchange_user_type_id in account_account. Renaming it to avoid that.