Tuesday, July 13, 2021
7 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 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
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.