Tuesday, July 13, 2021
10 changes · master
Resolved issues and error corrections
Several country-specific accounting localizations were corrected so tax groups and related test data align with new mandatory requirements. This helps prevent test failures and improves reliability of localized accounting configurations without changing day-to-day user workflows.
Original PR description
After making country_id mandatory in account_tax_groups, several tests started to fail and needed adaptation. Also test data needed some mending. * TestAccountInvoicingCommon's setUpClass has been fixed * l10n_ch tests were depending on demo data * l10n_co tax templates missed several mandatory tax_groups * Several `account_data.xml` `account_tax_group_data.xml` have been normalized to `account_tax_group.xml` in localization modules
This update removes slow dynamic filters that could cause performance issues when working with large numbers of records in inventory, manufacturing, purchasing, and landed costs. It also avoids an unnecessary warehouse setup warning and streamlines some purchasing and stock logic, making these workflows more reliable and scalable.
Original PR description
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 fixes a testing helper so web requests can be mocked even when no extra request settings are provided. It helps keep automated tests aligned with how web requests work in practice, reducing false failures for developers.
Original PR description
Fetch does not require the options parameter, this PR allow to mock resources without it.
Dropdown menus now close automatically when the active element on the page changes. This prevents menus from staying open at the wrong time, making the interface feel cleaner and less confusing for users.
Original PR description
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 ensures the Live Chat module includes a required session file so session information loads correctly. It prevents issues for customers using live chat features that rely on the older session handling path.
Original PR description
Since 54e9527ec2fdf0467de08b372c7e891fedaa68ae, a new session module is used to access the session info. The legacy session uses also this module to access the session info. This means that if a module uses the legacy session, the new session.js needs to be added to the manifest.
This change fixes an intermittent issue that could cause attendance-related holiday tests to fail unpredictably. It also makes the affected attendance test suites run much faster, helping development and release checks complete more reliably.
Original PR description
Fixes an underterministic error during the holidays_attendance test. Also speeds up both holidays_attendance and hr_attendance_overtime significantly. Task ID: 2599846
Several country-specific accounting and e-invoicing tests were updated after tax groups began requiring a country setting. This keeps localization checks reliable for Chile, Colombia, Spain, and Peru, reducing the risk of configuration issues during future updates.
Original PR description
After making country_id mandatory in account_tax_groups, several tests started to fail and needed adaptation. Also test data needed some mending. * l10n_cl_edi: one of the tests was failing because in a Tax Exempt document type, a taxed product was used. Now a different document type is used. * l10n_co_edi: country_id added to the tax groups. Some fix to the setUpClass's product creations * l10n_es_reports: fixed the setUpClass * l10n_pe_edi: tax groups data fixed * Minor linting
This change removes a slow filtering behavior in quality checks that could cause performance problems as data volumes grow. Users should experience faster and more reliable quality and manufacturing work order screens without changes to their workflow.
Original PR description
task-2558097
The simplified work order screen now prevents users from marking a work order as done when required quality checks are still pending. This avoids later blocking errors when completing the manufacturing order, while still allowing certain informational or registration checks to be completed automatically.
Original PR description
When a user uses the simplified view to process a Work Order which has quality checks to be done, there is currently no warning about it when marking the WO as done using the "Done" button of the simplified view. The user will therefore get an error when trying to "Mark As Done" a Manufacturing Order even if all the Work Orders are set as "Done" without warnings. This commit forbids to set as "Done" in the simplified view a workorder for which a Quality Check should be done, sending a warning message to complete the QC. This does not apply for Quality Checks of type Instructions, Register Component and Register by Product. For those types, it is possible to set the WO as Done and this will also set the QC as Done.
The project timesheet synchronization module now includes a required session file so it can correctly access user session information. This prevents errors caused by a recent internal session handling change and helps keep timesheet syncing working reliably.
Original PR description
Since 54e9527ec2fdf0467de08b372c7e891fedaa68ae, a new session module is used to access the session info. The legacy session uses also this module to access the session info. This means that if a module uses the legacy session, the new session.js needs to be added to the manifest.