Commit Graph
7 Commits
Author SHA1 Message Date
Benoit Socias 255eb4c99c [FIX] website, *: generate primary snippet templates for each theme
*: theme_default

Since [1] when installing a theme from the Website builder's Themes tab,
if that theme used other snippets than the default ones in their
configurator pages which were inherited, the import of the theme failed
because the primary template was not generated before the import of the
data files.

This commit relies on each theme calling
`_generate_primary_snippet_templates` before declaring templates that
require them.
In master, the early loading is removed altogether.
See the changes in `theme_default` for the approach that was adopted
through all themes.

Steps to reproduce in master:
- Start odoo-bin with `-i website`.
- Edit home page.
- Go to the "Theme" tab.
- Click on "Switch Theme".
- Pick "CORPORATE / Buzzy".

=> Fails because the `website.configurator_s_banner` template is not
defined.

[1]: https://github.com/odoo/odoo/commit/cfed4e391d11058b1b46417f0b630cdbc4070d7c

task-3670496

closes odoo/odoo#148443

Related: odoo/design-themes#755
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2024-01-22 19:00:58 +00:00
Jeremy Kersten eebe6ec8d4 [IMP] theme_default: remove autoinstall
closes odoo/odoo#40517

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-11-21 15:27:10 +00:00
qsm-odoo 986415cf05 [REF] website: install theme_default on first website by default
The original goal was to not have any pre-installed theme by default
and to force the user to consider installing one through the customize
dialog.

Now that we have a system to allow switching theme, it is better to have
one installed by default and allow the user to switch theme from the
customize dialog (note that last part was made in the parent commit with
the merge of website_theme_install into website).

Note: theme_default is purely empty, it is only installed by default for
clarity in the theme selection screen, for the default website.
2019-11-12 15:53:21 +00:00
Romain Derie 15e3646b4f [FIX] website_theme_install,*: redirect to frontend after theme install
*: theme_bootswatch, theme_default

Before this commit, the first time a website was loading a theme, it would
not be redirected to the frontend afterward (even if that theme was already
installed on another website).
Any other theme installation on that website would redirect to frontend as it
should.

Indeed, the first time it would use the `act_url` returned by `next()` which
would only be called during the first time installation on the website.

All the `ir.action.todo` related to themes can be removed anyway, as you can't
install directly a theme. It can only be installed through website settings >
load a theme.
In which case we will always want to redirect to frontend.

task-2070463

closes odoo/odoo#37306

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-10-01 16:14:57 +00:00
qsm-odoo 0b480f6b2c [FIX] website_theme_install, *: multi-website customization dialog
* theme_bootswatch, theme_default

Before this commit, the customization dialog for themes was not
multi-website. That means if a theme was installed on a website, the
customization dialog was enabled for all the websites.

Note: this commit uses the '_post_copy' system of theme installations
for the first time and it had to be adapted a little bit.
2018-08-31 16:00:10 +02:00
qsm-odoo 22c4311e28 [IMP] *: make customize dialog generic and improve options
* web, web_editor, website, website_theme_install, portal,
  theme_default, theme_bootswatch

The purpose of this task is to make the customize dialog as generic as
possible, that is theme-independant:

1) The design is now totally generic (Odoo visuals)
2) The XML definition is form-view like. This allows themes to extend
   the dialog without any risk of breaking the style and also allows to
   not care about lots of technical details.
3) New options have been included. Those were themes options that are
   now generic and which themes can simply adapt without touching the
   customize modal (navbar colors, footer color, navbar layout, fonts,
   body background, ...).

The color palette can now also be customized with user colors.

Using sass functionnalities, color palettes and fonts integration is now
a lot better.

Thanks to @qha-odoo for the original design.

task-31677
2018-08-10 16:49:29 +02:00
Denis Vermylen (dve) e142d78d92 [IMP] theme_*: add ir.actions.todo to themes
installing a theme redirects to the website instead of the backend menu.
2016-09-02 17:42:42 +02:00