Thursday, May 19, 2022
9 changes · master
Enhancements to existing features
The mail app now manages channel member lists through a dedicated internal view model. This helps make chat and discussion interfaces easier to maintain and more reliable, with limited direct change for end users.
This update adds a shared way for automated tests to simulate different screen sizes consistently across mail and web components. It reduces the risk of inconsistent test conditions, helping teams validate mobile and desktop behavior more reliably without affecting end users directly.
Original PR description
Until now, when we add to patch the ui size, we would have patched one of the following:
- config.device.{isMobile,size_class}
- env.isSmall / env.services.ui.{isSmall/size}
- browser.innerWidth / window.innerWidth
The issue is that patching one does not affect the others resulting in an incoherent state.
In order to ease ui size patching, the `patchUiSize` method has been introduced. This method
take either a size or a width as parameter (eg. SIZES.SM, 1920) and affect all the properties above.
task-2582313
enterprise: https://github.com/odoo/enterprise/pull/27428The population command now supports profiling and safer rollback options, helping teams inspect performance and repeat data generation without record conflicts. This mainly benefits internal testing and development workflows, especially for smaller datasets where profiling overhead is acceptable.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
A new automated test checks that project cost balances update correctly when timesheets are recorded. This helps ensure project profitability and cost reporting stay reliable when employee time is logged.
Original PR description
This commit adds a unit test to check if the value of
`analytic_account_balance` field in a project is the one expected when a
timesheet is added into this project.
The analytic account balance value expected should be equal to
`timesheet_cost * timesheet_unit_amount * -1`, where:
- `timesheet_cost`: the employee cost or the cost set on an employee mapping
defined in the project.
- `timesheet_unit_amount`: the number of hours/days set on the timesheet.
task-2783686This update makes several Odoo forms easier to understand and edit by adding helpful placeholder text and improving longer text fields. Users working with surveys, activity types, mass emails, and action help text should have a smoother editing experience with less guesswork.
Original PR description
Improves UX by adding placeholders to clarify the purpose of some inputs and changing some field layout to ease the edition (with the use of multi-lined editor). Details: Some placeholders have been added: - description field of survey.question - default_note field of mail.activity.type - summary of mail_activity_type_view_form Some field layouts have been turned into multi-lined editor: - default_note field of mail.activity.type - write a message in mass mail mode (email_compose_message_wizard_form) Added border for field help of edit action (class oe-bordered-editor) Task-2766291 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 streamlines how some core system messages are translated, avoiding unnecessary translation work when only one message is shown. It also improves reliability by falling back to English text if a translation is incomplete, helping prevent confusing or broken error messages.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update improves how automated tests simulate different screen sizes in the enterprise mail module. It helps keep test conditions consistent across mobile and desktop scenarios, reducing the risk of interface issues going unnoticed.
Original PR description
Until now, when we add to patch the ui size, we would have patched one of the following:
- config.device.{isMobile,size_class}
- env.isSmall / env.services.ui.{isSmall/size}
- browser.innerWidth / window.innerWidth
The issue is that patching one does not affect the others resulting in an incoherent state.
In order to ease ui size patching, the `patchUiSize` method has been introduced. This method
take either a size or a width as parameter (eg. SIZES.SM, 1920) and affect all the properties above.
task-2582313
community: https://github.com/odoo/odoo/pull/91540Appointment setup screens now show helpful placeholder text for introduction and confirmation message fields. This makes it easier for staff to understand what content to enter, reducing confusion during configuration.
Original PR description
Add placeholders to clarify the purpose of some inputs Details: Placeholders have been added in appointment_type_view_form for fields: - message_intro - message_confirmation Task-2766291
This update adds and improves automated checks for Field Service, sales, stock, reporting, worksheets, and timesheet timer behavior. It helps reduce the risk of regressions in common service workflows such as creating field service projects, preparing service reports, pricing materials, managing stock deliveries, and rounding timer entries.
Original PR description
Before these changes: - Many cases were not tested After these changes: ** industry_fsm: - Testing task_timer_min_duration_and_rounding - Testing auto_create_fsm_task when new company created ** industry_fsm_report: - Testing worksheet_without_studio_installed - Testing project_worksheet_template_propagation ** industry_fsm_sale: - Improve fsm_flow - Improve fsm_sale_pricelist - Add analytic_account_balance ** industry_fsm_sale_report: - Testing service_worksheet_template_propagation ** industry_fsm_stock: - Testing modify_quantity_for_tracked_product_by_lot_and_sn ** timesheet_grid: - Moving test_fsm_task_timer_min_duration_and_rounding to timesheet_grid Related PRs: community: https://github.com/odoo/odoo/pull/87405 Task-2783686