@@ -124,24 +124,25 @@ page object.
124
124
.. code-block :: xml
125
125
:caption: ``/website_airproof/data/pages/about_us.xml``
126
126
127
+ <?xml version =" 1.0" encoding =" utf-8" ?>
127
128
<odoo noupdate =" 1" >
128
- <record id =" page_about_us" model =" website.page" >
129
- <field name =" name" >About us</field >
130
- <field name =" is_published" eval =" True" />
131
- <field name =" key" >website_airproof.page_about_us</field >
132
- <field name =" url" >/about-us</field >
133
- <field name =" website_id" eval =" 1" />
134
- <field name =" type" >qweb</field >
135
- <field name =" arch" type =" xml" >
136
- <t t-name =" website_airproof.page_about_us" >
137
- <t t-call =" website.layout" >
138
- <div id =" wrap" class =" oe_structure" >
139
- <!-- Content -->
140
- </div >
141
- </t >
142
- </t >
143
- </field >
144
- </record >
129
+ <record id =" page_about_us" model =" website.page" >
130
+ <field name =" name" >About us</field >
131
+ <field name =" is_published" eval =" True" />
132
+ <field name =" key" >website_airproof.page_about_us</field >
133
+ <field name =" url" >/about-us</field >
134
+ <field name =" website_id" eval =" 1" />
135
+ <field name =" type" >qweb</field >
136
+ <field name =" arch" type =" xml" >
137
+ <t t-name =" website_airproof.page_about_us" >
138
+ <t t-call =" website.layout" >
139
+ <div id =" wrap" class =" oe_structure" >
140
+ <!-- Content -->
141
+ </div >
142
+ </t >
143
+ </t >
144
+ </field >
145
+ </record >
145
146
</odoo >
146
147
147
148
.. admonition :: Multiwebsite and `website_id`
@@ -325,8 +326,10 @@ Instantiate each building block (modified or not) for the page template:
325
326
.. code- block:: xml
326
327
:caption: `/ website_airproof/ views/ new_page_template_templates.xml`
327
328
328
- < template id =" new_page_template_s_airproof_text_block_h1 " inherit_id=" website_airproof.s_airproof_text_block_h1" primary=" True" / >
329
+ < template id =" new_page_template_airproof_faq_s_text_block_h1 " inherit_id=" website_airproof.s_airproof_text_block_h1" primary=" True" / >
329
330
< template id =" new_page_template_airproof_faq_s_title" inherit_id=" website.s_title" primary=" True" / >
331
+ < template id =" new_page_template_airproof_faq_s_faq_collapse" inherit_id=" website.s_faq_collapse" primary=" True" / >
332
+ < template id =" new_page_template_airproof_faq_s_call_to_action" inherit_id=" website.s_call_to_action" primary=" True" / >
330
333
331
334
Then, create your page template with some `t- snippet- call` within an `# wrap` as explained above:
332
335
0 commit comments