Skip to content

[FIX] website_multi_theme: duplicates creation must be done in correct order - #456

Merged
pedrobaeza merged 1 commit into
OCA:10.0from
yelizariev:10.0-website_multi_theme-fixes
May 15, 2018
Merged

pedrobaeza merged 1 commit into
OCA:10.0from
yelizariev:10.0-website_multi_theme-fixes

Conversation

@yelizariev

@yelizariev yelizariev commented May 1, 2018

Copy link
Copy Markdown
Member

After introducing sub-themes #454, it's essential to be sure that views are copied in a correct order.

Imagine that Theme has two theme-dependencies where one depends (i.e. as in manifest) on another. In that case website.theme.asset records for those theme-dependencies can be created in a random order. It might lead to a mess when we copy firstly view that extends not-copied yet view from another theme-dependency.

@yelizariev yelizariev changed the title [FIX] duplicate creation must be done in correct order [FIX] website_multi_theme: duplicates creation must be done in correct order May 1, 2018
@yelizariev
yelizariev force-pushed the 10.0-website_multi_theme-fixes branch from 4c02775 to 7c1ee80 Compare May 1, 2018 20:19
"website, and disabled otherwise. Usually used to load assets.",
)

view_priority = fields.Integer(related='view_id.priority', store=True)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

readonly=True

@rafaelbn rafaelbn added this to the 10.0 milestone May 2, 2018
@yelizariev
yelizariev force-pushed the 10.0-website_multi_theme-fixes branch from 7c1ee80 to 3ededcd Compare May 2, 2018 14:28
Comment thread website_multi_theme/__manifest__.py Outdated
"name": "Website Multi Theme",
"summary": "Support different theme per website",
"version": "10.0.1.3.2",
"version": "10.0.1.3.3",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This implies database changes, so bump it to 1.4.0

@pedrobaeza

Copy link
Copy Markdown
Member

There's a conflicting file.

@yelizariev
yelizariev force-pushed the 10.0-website_multi_theme-fixes branch from 33d6fe4 to f87a7e1 Compare May 15, 2018 14:52
@yelizariev

Copy link
Copy Markdown
Member Author

squashed and rebased 💚

@pedrobaeza
pedrobaeza merged commit e3f69aa into OCA:10.0 May 15, 2018
yelizariev pushed a commit to yelizariev/website-addons that referenced this pull request May 15, 2018
yelizariev pushed a commit to yelizariev/website-addons that referenced this pull request May 15, 2018
yelizariev pushed a commit to itpp-labs/website-addons that referenced this pull request May 15, 2018
matteoopenf pushed a commit to matteoopenf/website that referenced this pull request Feb 17, 2023
Signed-off-by pedrobaeza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants