[FIX] doc website: application field does not exists on ir.ui.view. The optional inherit used customize_show and active fields
This commit is contained in:
parent
9d5fb65128
commit
1dcc1c62cc
|
@ -500,18 +500,17 @@ Altering view architectures is done in 3 steps:
|
||||||
|
|
||||||
The second thing we will change is making the product categories sidebar
|
The second thing we will change is making the product categories sidebar
|
||||||
visible by default: :menuselection:`Customize --> Product Categories` lets
|
visible by default: :menuselection:`Customize --> Product Categories` lets
|
||||||
you toggle a tree of product categories (used to filter the main dispay) on
|
you toggle a tree of product categories (used to filter the main display) on
|
||||||
and off.
|
and off.
|
||||||
|
|
||||||
This is done via the *optional application* of extension templates: an
|
This is done via the ``customize_show`` and ``active`` fields of extension
|
||||||
extension template (such as the one we've just created) can be
|
templates: an extension template (such as the one we've just created) can be
|
||||||
"always applied", "optional and enabled" or "optional and disabled". The
|
*customize_show=True*. This choice will display the view in the :guilabel:`Customize`
|
||||||
latter two will display the view in the :guilabel:`Customize` menu with a
|
menu with a check box, allowing administrators to activate or disable them
|
||||||
check box, allowing administrators to enable or disable them (and easily
|
(and easily customize their website pages).
|
||||||
customize their website pages).
|
|
||||||
|
|
||||||
We simply need to modify the *Product Categories* record and set its default
|
We simply need to modify the *Product Categories* record and set its default
|
||||||
to ``enabled``:
|
to *active="True"*:
|
||||||
|
|
||||||
.. patch::
|
.. patch::
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,6 @@ diff -r c706c2ec2832 -r f85b481451bb academy/templates.xml
|
||||||
</template>
|
</template>
|
||||||
+
|
+
|
||||||
+ <record id="website_sale.products_categories" model="ir.ui.view">
|
+ <record id="website_sale.products_categories" model="ir.ui.view">
|
||||||
+ <field name="application">enabled</field>
|
+ <field name="active" eval="True"/>
|
||||||
+ </record>
|
+ </record>
|
||||||
</data></openerp>
|
</data></openerp>
|
||||||
|
|
Loading…
Reference in New Issue