-
-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] website: Handle Bootstrap 3->4 and Less->Scss
In case a user has customized any Less attachments, these are disabled because 99% of the times it will fail: Syntax from Scss and Less is different, there may not be a `lessc` executable in the Odoo 12 environment, and inherited views would probably fail finding the node to replace from XPath. Automated resilient conversion between Less and Scss is close to impossible. To avoid problems, these views are disabled. You are still able to fix and reenable them manually as needed. In Odoo v12, the standard behavior when a user modifies a website template is to create a modified copy which is specific to the current website (a.k.a. COW 🐮). To benefit from this new behavior, when migrating a website from Odoo 11 to 12: 1. If a website-specific view exists, it is migrated in place. 2. Website-agnostic views are migrated in a COW 🐮 view, specific for each preexisting website. 3. Webiste-agnostic views are marked as `noupdate=0`, so when starting a new website, you have the updated views as a starting point. To make this work, all this conversion had to be made in the pre-migration stage. 4. The new copies will have a hidden migration column that indicates from which view was it copied. 5. If the views were using any default images from snippets, they will be stored in the filestore now. To make this work, OCA/openupgradelib#148 is needed.
- Loading branch information
Showing
11 changed files
with
270 additions
and
119 deletions.
There are no files selected for viewing
Binary file added
BIN
+34.7 KB
...ite/migrations/12.0.1.0/changed_dummy_images/website.s_banner_default_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+177 KB
...igrations/12.0.1.0/changed_dummy_images/website.s_big_picture_default_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
...site/migrations/12.0.1.0/changed_dummy_images/website.s_cover_default_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.6 KB
...ations/12.0.1.0/changed_dummy_images/website.s_image_floating_default_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.1 KB
...migrations/12.0.1.0/changed_dummy_images/website.s_image_text_default_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11 KB
...tions/12.0.1.0/changed_dummy_images/website.s_parallax_slider_default_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+39 KB
...migrations/12.0.1.0/changed_dummy_images/website.s_text_image_default_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.