10000 [IMP] tutorials/website_theme: update from 16 to 17 by cede-odoo · Pull Request #13375 · odoo/documentation · GitHub
[go: up one dir, main page]

Skip to content

[IMP] tutorials/website_theme: update from 16 to 17 #13375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 24 additions & 26 deletions content/developer/tutorials/website_theme/02_build_website.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,31 @@ as content in the page.
:caption: ``/website_airproof/data/pages/home.xml``

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Deactivate default homepage -->
<record id="website.homepage" model="ir.ui.view">
<field name="active" eval="False"/>
</record>
<!-- Home -->
<record id="page_home" model="website.page">
<field name="name">Home</field>
<field name="is_published" eval="True"/>
<field name="key">website_airproof.page_home</field>
<field name="url">/</field>
<field name="type">qweb</field>
<field name="arch" type="xml">
<t t-name="website_airproof.page_home">
<t t-call="website.layout">
<!-- Title -->
<t t-set="additional_title">One step beyond the horizon | Airproof</t>
<!-- Content -->
<div id="wrap" class="oe_structure">
<p>Hello</p>
</div>
</t>
<odoo noupdate="1">
<!-- Deactivate default homepage -->
<record id="website.homepage" model="ir.ui.view">
<field name="active" eval="False"/>
</record>
<!-- Home -->
<record id="page_home" model="website.page">
<field name="name">Home</field>
<field name="is_published" eval="True"/>
<field name="key">website_airproof.page_home</field>
<field name="url">/</field>
<field name="type">qweb</field>
<field name="arch" type="xml">
<t t-name="website_airproof.page_home">
<t t-call="website.layout">
<!-- Title -->
<t t-set="additional_title">One step beyond the horizon | Airproof</t>
<!-- Content -->
<div id="wrap" class="oe_structure">
<p>Hello</p>
</div>
</t>
</field>
</record>
</data>
</t>
</field>
</record>
</odoo>

.. _tutorials/website_theme/build_website/media:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ You can find the `logo

- declare your :file:`website_templates.xml` file along with all the new ones in your
:file:`manifest`.
- disable the options you don’t want in your header via the `presets
<{GITHUB_TUTO_PATH}/website_airproof/data/presets.xml>`_.
- make the use of `primaries
<{GITHUB_TUTO_PATH}/website_airproof/static/src/scss/primary_variables.scss>`_ like
`header-template`, `navbar-font`, `header-font-size`...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ that can be animated and customized with different colors.
.. tip::
| **Be careful,** there is a trick!
| In your shape SVG file, you have to use the colors from the default Odoo palette.
| Here, I want it to match my primary color 3 (`#CEF8A1`). Therefore, in the SVG file, you must
use color 3 from Odoo's default palette (`#F6F6F6`).
| Here, I want it to match my primary color 1 (`#CEF8A1`). Therefore, in the SVG file, you must
use color 3 from Odoos default palette (`#3AADAA`).

.. spoiler:: Solutions

Expand Down Expand Up @@ -64,9 +64,9 @@ that can be animated and customized with different colors.
:caption: ``/website_airproof/data/pages/home.xml``

<!-- Text-image block & Background shape -->
<section class="s_text_image o_cc o_cc5 o_colored_level pt120 pb96"
<section class="s_text_image o_cc o_cc3 o_colored_level pt120 pb96"
data-snippet="s_image_text" data-name="Image - Text" style="background-color: rgb(41, 128,
187);" data-oe-shape-data="{'shape': 'illustration/airproof/waves', 'colors': {'c3': '#BBE1FA'},
187);" data-oe-shape-data="{'shape': 'illustration/airproof/waves', 'colors': {'c1': '#BBE1FA'},
'flip': ['x']}">
<div class="o_we_shape o_illustration_airproof_waves o_we_flip_x" style="background-image:
url('/web_editor/shape/illustration%2Fairproof%2Fwaves.svg?c2=%23BBE1FA');
Expand Down
0