Daily updates from Odoo
Saturday, July 15, 2023
6 changes
Enhancements to existing features
The planning tool now avoids copying shifts for project tasks when there is no remaining planned time available, matching existing behavior for sales order-based planning. Newly copied shifts are also shown more clearly, making it easier for planners to review what was just added.
Original PR description
*=project_timesheet_forecast_sale * When a planning was created from an SO confirmation, we copy it only if the related SOL has time left to plan. In this commit, we do the same for tasks without SO, but with a project (project.allocated_hours - project.total_forecast_time). * After copying, we now display the just planned shifts with more opacity (same as after "auto plan"). task-3251696
Knowledge dialogs for moving articles and choosing article links now use a newer, more sustainable selection menu. This keeps the experience searchable and familiar while preparing the app for the retirement of the older menu technology.
Original PR description
In this commit, we are transitioning the select2 inputs to an OWL version since select2 is bound to be deprecated in the future. In order to do that we are using a Component called SelectMenu. This…
In this commit, we are transitioning the select2 inputs to an OWL version since select2 is bound to be deprecated in the future. In order to do that we are using a Component called SelectMenu. This Component asks for a set of values linked to labels and it will search inside these values when you input text inside the searchBar. We needed to modify two dialogs that were using the old select2: `MoveArticleDialog` and `ArticleSelectionBehaviorDialog`. For `MoveArticleDialog`, we needed to use groups since this dialog also enabled the user top move an article inside a specific section. So we made two groups: an article group and a section group. For the section group we added the two sections 'Private' and 'Workspace', for the 'Private' section we added the image of the logged user beside its label using the `choice` slot of the `SelectMenu`, this slot enables us to customize each choice inside the `SelectMenu`. For `ArticleSelectionBehaviorDialog`, we only used the articles as the choices for the menu. We also added a `Create` button to the menu using the new `bottomArea` slot added by the JS team to the Component. This button creates a new article under the one we are currently, or inside the workspace if the command is called from outside Knowledge. If we are inside Knowledge, we trigger a render of the article tree to display the newly created article inside it. For each dialog, we are using the default slot to display the selected article. task-3134491
Subscription payments are now finalized through the standard reconciliation flow instead of relying on a payment callback, reducing the risk of inconsistent subscription or invoice states if processing is interrupted. The subscription payment route is also aligned with sales orders, and related fixes improve subscription template saving and remove obsolete pricing logic.
Original PR description
In subscription, we have two ways to do actions once the payment is validated (state done/authorized):
payment callback, synchronous.
reconcile after done, synchronous
The aim of the task is to avoid using the callback to use reconcile after done. callback are only used in subscription and are subject to issues if something crashes, we can be in a weird state in the cron with a draft invoice, a good payment and a confirmed transaction.
Before this commit, the transaction route was
/my/subscription/<int:order_id>/transaction
But in sale, the route is /my/orders/<int:order_id>/transaction
Having a similar route could help code consistancy:
some button could only add /transaction to the portal_url and we would have
the right behavior.
taskid: 3258616WebP images uploaded to Documents now display thumbnails and previews like other image formats. WebP files are also recognized in signing workflows, making it easier to review and sign these images without workarounds.
Original PR description
Before this commit webp images uploaded in documents did not appear with a thumbnail. After this commit webp images uploaded in documents are considered as images and therefore display their thumbnail. task-2774352
Users now see SAF-T report issues as warning banners when opening the report, instead of only discovering them after clicking export. This helps accounting teams identify missing information earlier and avoid failed or delayed SAF-T exports.
Original PR description
There are a few issues with the SAF-T report, particularly with the errors raised when generating it. For now, the user has to click the SAF-T button to be aware of potential issues/missing info. The goal is tho display those warnings as banners when the report is loaded, instead of waiting for the user to export it. task-2794931
Recruitment documents processed through OCR can now be scanned for known skill names even when the OCR service does not return structured skill data. This helps recruiters get applicant skill records created automatically, reducing manual data entry and improving candidate profiles.
Original PR description
As there is no skills extracted in the OCR results coming from the IAP server, we should search the skill names in the text and create corresponding "hr.applicant.skill" record for the applicant.