Skip to content

[19.0][OU-IMP] website: preserve footer color combination - #5897

Merged
pedrobaeza merged 1 commit into
OCA:19.0from
Tecnativa:19.0-imp-website-footer
Aug 20, 2026
Merged

[19.0][OU-IMP] website: preserve footer color combination#5897
pedrobaeza merged 1 commit into
OCA:19.0from
Tecnativa:19.0-imp-website-footer

Conversation

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor

Odoo changed the default footer color combination from 5 to 2 in odoo/odoo@62cad84.

Explicitly set combination 5 for existing websites to preserve their previous appearance after migration.

@Tecnativa TT63973

@pedrobaeza please review

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:19.0 labels Aug 10, 2026
@pedrobaeza pedrobaeza added this to the 19.0 milestone Aug 10, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

Check the CI

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

@pilarvargas-tecnativa please, rebase. I made an error when force pushing to 19.0 (it's already amended)

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor Author

@pilarvargas-tecnativa please, rebase. I made an error when force pushing to 19.0 (it's already amended)

Done. Thanks!

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor Author

I think the problem stems from the fact that the migration of website_mail_group is missing. I’d checked to make sure the script was included, but I haven’t had time to submit a pull request.

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

migrating website_mail_group in #5920, but mail_group is missing.

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

done mail_group in #5924

@pedrobaeza

Copy link
Copy Markdown
Member

Why is that one needed?

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor Author

Why is that one needed?

The “final” phase runs once all the modules included in the migration diagram have been updated. The error relating to “website_mail_group” indicates that this module has not been included in the update. When resolving web.assets_frontend, its ir.asset appears, but its files are not authorised as belonging to a loaded addon.

I think that’s the reason

Odoo changed the default footer color combination from 5 to 2 in
odoo/odoo@62cad84.

Explicitly set combination 5 for existing websites to preserve their
previous appearance after migration.

TT63973

@MiquelRForgeFlow MiquelRForgeFlow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, why this is done in end-migration? Will this change be reverted if after migrating you do an odoo update all?

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor Author

BTW, why this is done in end-migration? Will this change be reverted if after migrating you do an odoo update all?

It is done in end-migration because make_scss_customization() eventually
calls IrAsset._get_related_bundle(), which resolves web.assets_frontend.
During post-migration, website and other addons contributing to that bundle
may not yet be available to the asset resolver.

A later -u all will not revert it. save_asset() persists the customization
as a website-specific ir.attachment and creates an ir.asset with the
replace directive. These are user-created records without XML IDs, so a
module update may invalidate and rebuild the compiled bundles, but it does not
overwrite or remove the source customization.

@pedrobaeza
pedrobaeza merged commit 66da473 into OCA:19.0 Aug 20, 2026
7 checks passed
@pedrobaeza
pedrobaeza deleted the 19.0-imp-website-footer branch August 20, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:openupgrade_scripts Module openupgrade_scripts series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants