8000 [IMP] tutorials/website_theme: update from 16 to 17 · odoo/documentation@38cae60 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38cae60

Browse files
committed
[IMP] tutorials/website_theme: update from 16 to 17
closes #13375 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
1 parent 364a986 commit 38cae60

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

content/developer/tutorials/website_theme/02_build_website.rst

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,31 @@ as content in the page.
3434
:caption: ``/website_airproof/data/pages/home.xml``
3535
3636
<?xml version="1.0" encoding="utf-8"?>
37-
<odoo>
38-
<data noupdate="1">
39-
<!-- Deactivate default homepage -->
40-
<record id="website.homepage" model="ir.ui.view">
41-
<field name="active" eval="False"/>
42-
</record>
43-
<!-- Home -->
44-
<record id="page_home" model="website.page">
45-
<field name="name">Home</field>
46-
<field name="is_published" eval="True"/>
47-
<field name="key">website_airproof.page_home</field>
48-
<field name="url">/</field>
49-
<field name="type">qweb</field>
50-
<field name="arch" type="xml">
51-
<t t-name="website_airproof.page_home">
52-
<t t-call="website.layout">
53-
<!-- Title -->
54-
<t t-set="additional_title">One step beyond the horizon | Airproof</t>
55-
<!-- Content -->
56-
<div id="wrap" class="oe_structure">
57-
<p>Hello</p>
58-
</div>
59-
</t>
37+
<odoo noupdate="1">
38+
<!-- Deactivate default homepage -->
39+
<record id="website.homepage" model="ir.ui.view">
40+
<field name="active" eval="False"/>
41+
</record>
42+
<!-- Home -->
43+
<record id="page_home" model="website.page">
44+
<field name="name">Home</field>
45+
<field name="is_published" eval="True"/>
46+
<field name="key">website_airproof.page_home</field>
47+
<field name="url">/</field>
48+
<field name="type">qweb</field>
49+
<field name="arch" type="xml">
50+
<t t-name="website_airproof.page_home">
51+
<t t-call="website.layout">
52+
<!-- Title -->
53+
<t t-set="additional_title">One step beyond the horizon | Airproof</t>
54+
<!-- Content -->
55+
<div id="wrap" class="oe_structure">
56+
<p>Hello</p>
57+
</div>
6058
</t>
61-
</field>
62-
</record>
63-
</data>
59+
</t>
60+
</field>
61+
</record>
6462
</odoo>
6563
6664
.. _tutorials/website_theme/build_website/media:

content/developer/tutorials/website_theme/03_customisation_part1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ You can find the `logo
134134
135135
- declare your :file:`website_templates.xml` file along with all the new ones in your
136136
:file:`manifest`.
137+
- disable the options you don’t want in your header via the `presets
138+
<{GITHUB_TUTO_PATH}/website_airproof/data/presets.xml>`_.
137139
- make the use of `primaries
138140
<{GITHUB_TUTO_PATH}/website_airproof/static/src/scss/primary_variables.scss>`_ like
139141
`header-template`, `navbar-font`, `header-font-size`...

content/developer/tutorials/website_theme/04_customisation_part2.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ that can be animated and customized with different colors.
2929
.. tip::
3030
| **Be careful,** there is a trick!
3131
| In your shape SVG file, you have to use the colors from the default Odoo palette.
32-
| Here, I want it to match my primary color 3 (`#CEF8A1`). Therefore, in the SVG file, you must
33-
use color 3 from Odoo's default palette (`#F6F6F6`).
32+
| Here, I want it to match my primary color 1 (`#CEF8A1`). Therefore, in the SVG file, you must
33+
use color 3 from Odoos default palette (`#3AADAA`).
3434
3535
.. spoiler:: Solutions
3636

@@ -64,9 +64,9 @@ that can be animated and customized with different colors.
6464
:caption: ``/website_airproof/data/pages/home.xml``
6565
6666
<!-- Text-image block & Background shape -->
67-
<section class="s_text_image o_cc o_cc5 o_colored_level pt120 pb96"
67+
<section class="s_text_image o_cc o_cc3 o_colored_level pt120 pb96"
6868
data-snippet="s_image_text" data-name="Image - Text" style="background-color: rgb(41, 128,
69-
187);" data-oe-shape-data="{'shape': 'illustration/airproof/waves', 'colors': {'c3': '#BBE1FA'},
69+
187);" data-oe-shape-data="{'shape': 'illustration/airproof/waves', 'colors': {'c1': '#BBE1FA'},
7070
'flip': ['x']}">
7171
<div class="o_we_shape o_illustration_airproof_waves o_we_flip_x" style="background-image:
7272
url('/web_editor/shape/illustration%2Fairproof%2Fwaves.svg?c2=%23BBE1FA');

0 commit comments

Comments
 (0)
0