From ebe7fabf9829f69431272ea6f1734c4a7b69df85 Mon Sep 17 00:00:00 2001 From: ggros Date: Mon, 10 Feb 2020 13:30:37 +0000 Subject: [PATCH] [FIX] doc: themes tutorial * Outdated xml See https://stackoverflow.com/questions/53160591/extending-default-template-odoo-12/53162439#53162439 Courtesy of EvgenijjKum from #41970. * Outdated javascript See https://stackoverflow.com/questions/41061604/odoo-10-how-to-create-snippets-javascript-option#41062045 closes odoo/odoo#49308 X-original-commit: bdf8ef755a0462871bc907c68597a56d332876e9 Signed-off-by: Victor Feyens (vfe) --- doc/howtos/themes.rst | 49 +++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/doc/howtos/themes.rst b/doc/howtos/themes.rst index 89695326b7d..3acf3d1531e 100644 --- a/doc/howtos/themes.rst +++ b/doc/howtos/themes.rst @@ -251,7 +251,7 @@ Open the ``__manifest__.py`` you created and copy/paste the following: 'data': [ ], 'category': 'Theme/Creative', - 'depends': ['website'], + 'depends': ['website', 'website_theme_install'], } Replace the first four property’s values with anything you like. @@ -262,12 +262,12 @@ The ``data`` property will contain the xml files list. Right now it’s empty, b ``category`` defines your module category (always “Theme”) and, after a slash, the subcategory. You can use one subcategory from the Odoo Apps categories list. (https://www.odoo.com/apps/themes) -``depends`` specifies the modules needed by our theme to work properly. For our tutorial theme, we only need website. If you need blogging or eCommerce features as well, you have to add those modules too. +``depends`` specifies the modules needed by our theme to work properly. For our tutorial theme, we only need website and website_theme_install to install/update. If you need blogging or eCommerce features as well, you have to add those modules too. .. code-block:: python ... - 'depends': ['website', 'website_blog', 'sale'], + 'depends': ['website', 'website_theme_install', 'website_blog', 'sale'], ... @@ -337,7 +337,7 @@ code. - +