Friday, May 20, 2022
15 changes · master
New functionality added to Odoo
This update adds missing automated checks for Field Service sales reporting flows, including projects and worksheet templates created from sales orders. It helps ensure future changes do not accidentally break how field service tasks and related sales data are prepared.
Original PR description
task-2723662
Enhancements to existing features
Helpdesk tickets now identify their main email address to support safer message handling. This helps prevent automated email loops, reducing noise and avoiding repeated ticket updates.
Original PR description
Purpose ======= Add the model attribute "_primary_email" on the ticket. This attribute is useful to avoid email loops. Task-2294034
Resolved issues and error corrections
The default name shown for spreadsheet templates in Documents is now available in the user's language. This improves clarity for multilingual teams and makes the interface feel more consistent across localized Odoo environments.
Original PR description
Task-id 2841079
Features or functions removed from Odoo
This update removes old compatibility code from the German POS certification module because the related screenshot library no longer supports that option. The change helps keep the module aligned with newer dependencies and reduces maintenance risk without changing business workflows.
Original PR description
The `letterRendering` option was removed from the `html2canvas` library in recent versions. Since the library is getting updated, we can get rid of code that was only there to check whether that option should be active or not (which was in order to cover an issue with the old workings of the library). Community PR: https://github.com/odoo/odoo/pull/91773
Miscellaneous changes
# Purpose When using the previous feature of the browser, the page displays and uses the last values of the page. This leads to a missmatch between what's displayed to the user and used to compute the slots availabilities. #Specifications Before the fix: We open the page to select a slot from the availabilities to book an appointment. We select a particular employee/user before selecting a slot. When arriving in the form, the user changes his mind and goes back to the previous page. O
Original PR description
# Purpose When using the previous feature of the browser, the page displays and uses the last values of the page. This leads to a missmatch between what's displayed to the user and used to compute the slots availabilities. #Specifications Before the fix: We open the page to select a slot from the availabilities to book an appointment. We select a particular employee/user before selecting a slot. When arriving in the form, the user changes his mind and goes back to the previous page. On this page, the last employee/user is displayed but the one used to compute the slot availabilities is in fact the first option of the select. Now when going back we check all the last values and refresh with these ones if there was a change. This also fix an issue when updating availabilities where the weekdays are dispappearing. # Links task-2812466 Forward-Port-Of: odoo/enterprise#27596 Forward-Port-Of: odoo/enterprise#26717
[FIX] sale_timesheet_enterprise: fix the access error while selecting project Before this commit, when user with the 'timesheets: own documents' and the 'sales: own documents' access right level try to add the new timesheet with 'add new line' wizard then it could generate and access on selection of the project if, he/she does not own the sale order the timesheet is linked to. So in this commit, use a sudo to access the order's user in compute to check timesheet has so access or not. ta
Original PR description
[FIX] sale_timesheet_enterprise: fix the access error while selecting project Before this commit, when user with the 'timesheets: own documents' and the 'sales: own documents' access right level try to add the new timesheet with 'add new line' wizard then it could generate and access on selection of the project if, he/she does not own the sale order the timesheet is linked to. So in this commit, use a sudo to access the order's user in compute to check timesheet has so access or not. task-2774812 Forward-Port-Of: odoo/enterprise#25687
*planning,project_holidays,helpdesk In planning -display avatar even if employee is archived In project_holidays -don't display task warning when no conflict In helpdesk -aligned the kanban state to the right task-2774812 Forward-Port-Of: odoo/enterprise#27572 Forward-Port-Of: odoo/enterprise#25686
Original PR description
*planning,project_holidays,helpdesk In planning -display avatar even if employee is archived In project_holidays -don't display task warning when no conflict In helpdesk -aligned the kanban state to the right task-2774812 Forward-Port-Of: odoo/enterprise#27572 Forward-Port-Of: odoo/enterprise#25686
This update changes spreadsheet-related functionality in the Documents area as part of NGR testing. The available details suggest a limited internal or validation-focused change, with low expected impact for business users.
Forward-Port-Of: odoo/enterprise#27232 Forward-Port-Of: odoo/enterprise#27066
Original PR description
Forward-Port-Of: odoo/enterprise#27232 Forward-Port-Of: odoo/enterprise#27066
Before this commit, on filter 'planned for today' only returns the record having the start date as today. So in this commit fixes 'planned for today' filter and returns the record which is containing today date between the start-date and end-date. task-2818646 X-original_commit: 614c9cb6a4febb0f8cd47457880fdfc287128b3d Forward-Port-Of: #26160 Forward-Port-Of: odoo/enterprise#27518
Original PR description
Before this commit, on filter 'planned for today' only returns the record having the start date as today. So in this commit fixes 'planned for today' filter and returns the record which is containing today date between the start-date and end-date. task-2818646 X-original_commit: 614c9cb6a4febb0f8cd47457880fdfc287128b3d Forward-Port-Of: #26160 Forward-Port-Of: odoo/enterprise#27518
Users should not be able to disallow tokenization if they pay for a subscription. This commit introduces a new method to better predict when the tokenization checkbox should be shown or hidden. This also ensures that the behavior will be the same across all modules. See also: - https://github.com/odoo/odoo/pull/80046 task-2695201 Forward-Port-Of: odoo/enterprise#25335
Original PR description
Users should not be able to disallow tokenization if they pay for a subscription. This commit introduces a new method to better predict when the tokenization checkbox should be shown or hidden. This also ensures that the behavior will be the same across all modules. See also: - https://github.com/odoo/odoo/pull/80046 task-2695201 Forward-Port-Of: odoo/enterprise#25335
Steps to reproduce: 1- install accounnting and mx localization 2- go to reporting > general ledger > XML (Polizas) 3- Select "Tax Audit" and put the Order Number "ABC6987654/99" 4- if the report is covering 1 month only a traceback appears Bug: the b64encode() method expects a binary Fix: encode the Markup object to binary OPW-2750584 Forward-Port-Of: odoo/enterprise#27363
Original PR description
Steps to reproduce: 1- install accounnting and mx localization 2- go to reporting > general ledger > XML (Polizas) 3- Select "Tax Audit" and put the Order Number "ABC6987654/99" 4- if the report is covering 1 month only a traceback appears Bug: the b64encode() method expects a binary Fix: encode the Markup object to binary OPW-2750584 Forward-Port-Of: odoo/enterprise#27363
Task 2841088 1. Set a salary rule, with a default account with default taxes 2. Create a payslip, then create a draft entry 3. Default taxes do not appear on move lines tax_ids need to be explicitly passed when creating an account.move Forward-Port-Of: odoo/enterprise#27514 Forward-Port-Of: odoo/enterprise#26902
Original PR description
Task 2841088 1. Set a salary rule, with a default account with default taxes 2. Create a payslip, then create a draft entry 3. Default taxes do not appear on move lines tax_ids need to be explicitly passed when creating an account.move Forward-Port-Of: odoo/enterprise#27514 Forward-Port-Of: odoo/enterprise#26902
On a picking, if a line already has a source package, it won't be possible to define its destination package To reproduce the issue: 1. In Settings, enable "Packages" 2. Create a storable product P 3. Update its qty: - 2 x P in package PACK01 4. Inventory > Products > Packages, create a second package PACK02 5. Create a planned delivery order DO with 1 x P 6. Mark DO as todo - One P is reserved (its source package is PACK01 but its destination package is not defined) 7. Bar
Original PR description
On a picking, if a line already has a source package, it won't be possible to define its destination package To reproduce the issue: 1. In Settings, enable "Packages" 2. Create a storable product P…
On a picking, if a line already has a source package, it won't be
possible to define its destination package
To reproduce the issue:
1. In Settings, enable "Packages"
2. Create a storable product P
3. Update its qty:
- 2 x P in package PACK01
4. Inventory > Products > Packages, create a second package PACK02
5. Create a planned delivery order DO with 1 x P
6. Mark DO as todo
- One P is reserved (its source package is PACK01 but its
destination package is not defined)
7. Barcode > Operations > Delivery Orders, open DO
8. Click on +1 for P
9. Scan PACK02
Error: The destination package is not completed and a error notification
is displayed "You are expected to scan one or more [...]"
Processing the barcode leads to `_processPackage` because the barcode is
considered as a package, which is correct. However, it does not define
the destination package with PACK02 because the selected line already
has a source package. This should not matter.
OPW-2822494
Forward-Port-Of: odoo/enterprise#27528
Forward-Port-Of: odoo/enterprise#27237before this commit, unnecessary scrollbar occurred in timesheet grid view, after this commit scrollbar is removed. Task-2818646 Forward-Port-Of: odoo/enterprise#27492 Forward-Port-Of: odoo/enterprise#26157
Original PR description
before this commit, unnecessary scrollbar occurred in timesheet grid view, after this commit scrollbar is removed. Task-2818646 Forward-Port-Of: odoo/enterprise#27492 Forward-Port-Of: odoo/enterprise#26157