Daily updates from Odoo
Wednesday, June 26, 2019
6 changes · master
Enhancements to existing features
Ecommerce category links in the sitemap now match the final customer-facing URLs, including the full parent category path. This helps search engines see the same SEO-friendly category structure that shoppers use on the website.
Original PR description
Before this commit, when an user would visit a subcategory in the ecommerce, he would see a slugified URL, containing all the category hierarchy, which is good for SEO purpose. For example, if `Wheel` is a child of `Car` which is a child of `Vehicule`, then the URL would be `/shop/category/vehicule-car-wheel-3`. But on the sitemap, the parents would not be prefixed to the URL, thus the sitemap would simply show `<loc>/shop/category/wheel-3</loc>`. This commit ensure the category parents are added to the final URL of the sitemap. task-1889972
This change lets Odoo modules run specific actions immediately before and after they are upgraded. It gives teams more control over upgrade processes, helping automate preparation or follow-up tasks that previously required manual handling.
Original PR description
**Description of the issue/feature this PR addresses:** Hooks to be able to execute specific methods when upgrading a module. **Current behavior before PR:** There is no way to execute specific methods just before or after the upgrading a module. **Desired behavior after PR is merged:** New hooks: 'pre_update_hook' and 'post_update_hook' **NOTE:** I would prefer to push to previous versions, but I know your policy is to implement this kind of changes in `master` 😢 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The web interface no longer shows the “Remove” button when opening related records from list-style fields, reducing the chance that users accidentally delete or unlink a record instead of discarding changes. The button remains available in kanban-style related records where it is still needed as the only removal option.
Original PR description
When we open any x2m record (in a FormViewDialog), there is a "Remove" button to delete/unlink the opened record from parent. This button is placed besides "Discard" button and it creates little confusion in some cases. For example, in list view, there's already a bin / 'x' icon depending on the field type using which people are used to delete/unlink the record. And when they open a record, they might accidentally click "Remove" button instead of "Discard". To avoid this, now we won't show "Remove" button when we open record from x2many list view. However, we have to keep this button in case x2many of kanban as there's no other way to remove the record. task-1886913 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
The project’s internal JavaScript checks now allow the latest supported language version in the master branch. This keeps development validation aligned with current platform capabilities while still catching syntax issues before they reach users.
Original PR description
ESNext is now supported in master so the max version number has been raised. Note that es-check is still used but not for the original purpose ; it is still useful for JS syntax checking.
Resolved issues and error corrections
Completed manufacturing work orders no longer show actions such as continuing production or scrapping that should not be used once the work is done. This reduces user confusion and helps prevent inappropriate follow-up actions on finished production steps.
Original PR description
**Description of the issue/feature this PR addresses:** Task:https://www.odoo.com/web#id=2003916&action=333&active_id=1278&model=project.task&view_type=form&menu_id=4720 Pad:https://pad.odoo.com/p/r.4bec819e9247800f8f84c35a9903e9df **Description** previously button "continue production" was visible on work orders which were in done state. Which was not ideal. Fixed it by hiding it. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Website editors can now save pages without losing design changes applied to selection or many-to-one form fields. This keeps published forms looking consistent and reduces the need to manually reapply formatting after saving.
Original PR description
**Task**: https://www.odoo.com/web#id=1961733&model=project.task&menu_id=4720 **Pad**: https://pad.odoo.com/p/r.239a84b7bd1077d2ebd373089e8f0523 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr