Daily updates from Odoo
Monday, May 6, 2024
12 changes · master
Enhancements to existing features
WhatsApp configuration options are now shown under Discuss settings instead of Email settings. This makes the settings page clearer and helps users find WhatsApp-related options in the expected place.
Original PR description
### whatsapp Following the addition of the Email settings group, moves whatsapp settings to the Discuss settings group. task-3859594
Account reports now keep their fixed top-level sections in their original order when users sort report lines. This preserves the intended structure of official reports while still sorting the detailed content within each section.
Original PR description
For most reports (especially the official ones) it is not relevant to sort the fixed parts. That's why this commit excludes the hierarchy level 0 lines from sorting. This makes it so the structure of the report is preserved while sorting, but the content of each part does get sorted. task: 3645935
Resolved issues and error corrections
This fixes an internal test setup issue in the Dutch SBR reporting module caused by an incorrect code rebase. It helps keep automated checks reliable, reducing the risk of unnoticed problems in Dutch tax reporting functionality.
Original PR description
A bad rebase removed the classmethod attribute on the setUpClass runbot-64610
A payroll account test sequence was corrected so the automated checks follow the intended order. This helps keep Belgian payroll account testing reliable and reduces the risk of false test failures during future updates.
Original PR description
This commit fixes wrongly swapped test steps in hr_contract_salary_tour_2
The task portal now uses the correct timesheet hours value when showing subtask totals. This prevents missing or incorrectly formatted hour values for customers viewing project task information online.
Original PR description
Before this commit, due to a bad rebase, the changes made in odoo/odoo#122814 changed `task.subtask_effective_hours` by `timesheets_by_subtask_amount` in span elements inside `hr_timesheet.portal_timesheet_table` but the variable `timesheets_by_subtask_amount` does not exist inside that template. That's why the value cannot be converted by the widget defined for that span element. This commit adapts the template to be sure `task.subtask_effective_hours` is used instead of that variable. runbot-64479
Miscellaneous changes
The reconciliation of journal items imported from Winbooks is done when all those items are posted. However if one of the imported items to reconcile have zero as balance, it will trigger an error "You are trying to reconcile some entries that are already reconciled." because Odoo consider zero balance lines as reconciled and block the user of posting the entries. This fix removes the reconciliation data when the Winbooks file is imported if the item has a zero balance since this item does no
Original PR description
The reconciliation of journal items imported from Winbooks is done when all those items are posted. However if one of the imported items to reconcile have zero as balance, it will trigger an error "You are trying to reconcile some entries that are already reconciled." because Odoo consider zero balance lines as reconciled and block the user of posting the entries. This fix removes the reconciliation data when the Winbooks file is imported if the item has a zero balance since this item does not need to be reconciled in the future. opw-3830355 Forward-Port-Of: odoo/enterprise#61743
*: product, stock_barcode product: - Add a on change method on barcode to add autofill record. - Find products in barcodelookup.com from the barcode field stock_barcode: - Display a popup(form-view) to create a product if the scanned product is not available in the database and autofill the record. Co-authored-by: jva-odoo jva@odoo.com Co-authored-by: rare-odoo rare@odoo.com task-3871453 Forward-Port-Of: odoo/enterprise#61949
Original PR description
*: product, stock_barcode product: - Add a on change method on barcode to add autofill record. - Find products in barcodelookup.com from the barcode field stock_barcode: - Display a popup(form-view) to create a product if the scanned product is not available in the database and autofill the record. Co-authored-by: jva-odoo jva@odoo.com Co-authored-by: rare-odoo rare@odoo.com task-3871453 Forward-Port-Of: odoo/enterprise#61949
With [1], we have changed the field name ``l10n_in_gstr_gst_production_env`` to ``l10n_in_edi_production_env``in some files, but its reference was still present at [2]. This causes an exception when the users follow below steps: Step to reproduce: - Install ``l10n_in_reports_gstr`` module - Switch to ``IN Company`` - Accounting > Configuration > Indian Integration > Indian GST - Click on ``Buy Credits`` Traceback: ``AttributeError: 'res.config.settings' object has no attribute
Original PR description
With [1], we have changed the field name ``l10n_in_gstr_gst_production_env`` to ``l10n_in_edi_production_env``in some files, but its reference was still present at [2]. This causes an exception when the users follow below steps: Step to reproduce: - Install ``l10n_in_reports_gstr`` module - Switch to ``IN Company`` - Accounting > Configuration > Indian Integration > Indian GST - Click on ``Buy Credits`` Traceback: ``AttributeError: 'res.config.settings' object has no attribute 'l10n_in_gstr_gst_production_env'`` This commit will resolve the above error by changing the name of the field to ``l10n_in_edi_production_env`` at [2]. [1] : https://github.com/odoo/enterprise/commit/328c01e601d7905df3ebfb4c6b014c7dbf09fce2 [2] : https://github.com/odoo/enterprise/blob/ba99dd4c236353c43376210a9aabcb0af5bd0299/l10n_in_reports_gstr/models/res_config_settings.py#L68C9-L69C88 sentry-5287121031 Forward-Port-Of: odoo/enterprise#61829
…igher rules Have rules such as: 1. no domain, notification order: 1 2. no domain, notification order: 2 3. a domain that doesn't match the record, notification order: 2 Manually validate the rule 1, that is, do not hit the button of the action, rather, enter the popup of the approvals, and validate the rule. The spec of the flow is that, when all rules from a level (or notification order) have been validated, rules that have a higher order will trigger an activity and a notification
Original PR description
…igher rules Have rules such as: 1. no domain, notification order: 1 2. no domain, notification order: 2 3. a domain that doesn't match the record, notification order: 2 Manually validate the rule 1, that is, do not hit the button of the action, rather, enter the popup of the approvals, and validate the rule. The spec of the flow is that, when all rules from a level (or notification order) have been validated, rules that have a higher order will trigger an activity and a notification to their responsible. After all, those rules are "next in line". Before this commit, both rule 2 and 3 sent a notification and created an activity for the current record. This was wrong as rule 3 should not be considered, because its domain doesn't match the record. After this commit, only rule 2 sends a notification and creates an activity. opw-3815732 Forward-Port-Of: odoo/enterprise#61746
Added a test for partners vat export in DateV report. task-3866785 Forward-Port-Of: odoo/enterprise#61202
Original PR description
Added a test for partners vat export in DateV report. task-3866785 Forward-Port-Of: odoo/enterprise#61202
The query defined `_l10n_pe_get_txt_11_data` does not define an order. It can result in an undeterministic order. We define it based on the date then id. Linked to runbot error 63997 Forward-Port-Of: odoo/enterprise#61867
Original PR description
The query defined `_l10n_pe_get_txt_11_data` does not define an order. It can result in an undeterministic order. We define it based on the date then id. Linked to runbot error 63997 Forward-Port-Of: odoo/enterprise#61867
This will fix the computation of the double holiday pay recovery to match legal requirements. Task: 3893867 Forward-Port-Of: odoo/enterprise#61540
Original PR description
This will fix the computation of the double holiday pay recovery to match legal requirements. Task: 3893867 Forward-Port-Of: odoo/enterprise#61540