Friday, September 16, 2022
13 changes · master
Enhancements to existing features
The payroll dashboard now uses a newer rich text field component and updated data handling behind the scenes. This should make dashboard content more reliable and easier to maintain without changing the overall payroll workflow for users.
Original PR description
Make use of the new html field component in the dashboard + and also the relational model hook and api instead of relying on plain objects.
This update replaces outdated form layout styling with newer supported layout classes across several Odoo apps. It helps keep pages compatible with the current design framework and also fixes alignment issues in the VoIP transfer call popup.
This update improves the Field Service task creation experience by placing a helper tip in a more useful position. It also makes worksheet settings more reliable by disabling worksheets by default for non-Field Service projects and stabilizing related automated checks.
Original PR description
In this commit: - The tip for the partner in create task step is changed from buttom to right - project.project: the 'worksheets' option should be set to false by default if is_fsm is false. - test_project_worksheet_template_propagation fail if a default_worksheet is set as we are asserting fsm_project.worksheet_template_id but when creating fsm_project, if a default_worksheet is set, when _compute_worksheet_template_id is called, the project worksheet_template_id will be set as the default_worksheet, to avoid this instability, we assert that fsm_project and its task have the same worksheet_template_id at the beginning of the test to work on both cases (No worksheet, Default worksheet) Task-2849270
Resolved issues and error corrections
Financial reports now keep popup icons visible even when a leading value is zero or otherwise appears empty. This prevents users from losing access to actions such as carryover details or cell editing while still preserving the report layout behavior.
Original PR description
When rendering the report, we remove some empty column values in order to let space to stretch the line name further. When doing that, we didn't check whether the line contained a popup icon or not (for carryover or cell edition, for example), causing them to disappear on 0-balanced leading cells.
Code cleanup and technical improvements
The spreadsheet document filter selector was updated to align with the newer interface components used across Odoo. This is an internal modernization that should keep the same user experience while improving maintainability and consistency for future updates.
Miscellaneous changes
Forward-Port-Of: odoo/enterprise#31370
Original PR description
Forward-Port-Of: odoo/enterprise#31370
Forward-Port-Of: odoo/enterprise#31042
The phone number input now uses the correct standard field type, improving consistency with browser behavior. This helps ensure phone fields work as expected across devices and avoids relying on an invalid input setting.
Original PR description
This pr is the enterprise counter part of odoo/odoo#100388 where we set the input type to "tel" in PhoneField, instad of "phone", which simply doesn't exist.
This fixes missing styling for PDF previews in manufacturing work orders and Sign after an internal field name changed. Users should see PDF documents displayed with the expected layout again, improving readability and consistency.
Original PR description
The class for the pdf_viewer field changed from `o_field_pdfviewer` to `o_field_pdf_viewer`
This fixes the appearance of certain dropdown fields in salary contract pages after the Bootstrap 5 migration caused them to display with mismatched styling. Users should see a more consistent and familiar form experience while a longer-term library upgrade remains for the future.
Original PR description
Due to the migration of Bootstrap 5, `form-control` was converted into `form-select` to `select` tag. This made was due to a caret missmatch with the previous version due to a change in Boostrap 5. But in some case the `select` input used Select2. Actually our Select2 is an old version (3.5.4 the last release is 4.0.13) and we have a `CSS` file alongside Select2 to match the style of Boostrap, but it is for Boostrap 3. We restore the old class in these case to restore the old styling (with little hiccup but better than actual). The good fix, will be to upgrade the lib, and its Bootstrap theming (for BS5) to the last version.
Shipments with no insurance amount will no longer trigger an unnecessary insurance request to EasyPost. This prevents failed shipping operations caused by EasyPost rejecting insurance amounts of zero.
Original PR description
Before this commit, we call the `/insure` endpoint even when it is null. this leads to the following error: `Easypost returned an error: Insurance amount must be greater than 0` With this commit, we avoid calling the insure endpoint whenever the insured amount is 0.0 .
Original PR description
Forward-Port-Of: odoo/enterprise#31042
Forward-Port-Of: odoo/enterprise#31116
Original PR description
Forward-Port-Of: odoo/enterprise#31116
Before this commit, recurrence_id is required for subscription views and not in sale_management. As some upgraded upsells have no recurrence_id, make it the recurrence_id required for all so in sale_subscription application cause issues. Forward-Port-Of: odoo/enterprise#31249
Original PR description
Before this commit, recurrence_id is required for subscription views and not in sale_management. As some upgraded upsells have no recurrence_id, make it the recurrence_id required for all so in sale_subscription application cause issues. Forward-Port-Of: odoo/enterprise#31249