[11.0][IMP] document_page:

* move menus to a higher level.
 * fix categories search view.
 * fix create menu action not being accessible in any way.
 * reorder form view, focusing in the content, not in secondary fields.
This commit is contained in:
Lois Rilo
2019-02-28 10:55:23 +01:00
committed by Dũng (Trần Đình)
parent 980fa17243
commit 465dadd5c4
7 changed files with 56 additions and 30 deletions

View File

@@ -51,6 +51,24 @@
</field>
</record>
<record id="view_document_category_filter" model="ir.ui.view">
<field name="name">document.page.category.search</field>
<field name="model">document.page</field>
<field name="arch" type="xml">
<search string="Document Category">
<field name="name" string="Content"
filter_domain="['|', ('name','ilike',self), ('template','ilike',self)]"/>
<field name="parent_id"/>
<field name="create_uid"/>
<field name="content_uid"/>
<group expand="0" string="Group By...">
<filter string="Category" context="{'group_by':'parent_id'}"/>
<filter string="Author" context="{'group_by':'create_uid'}"/>
<filter string="Last Contributor" context="{'group_by':'content_uid'}"/>
</group>
</search>
</field>
</record>
<!-- Category Action -->
<record id="action_category" model="ir.actions.act_window">
@@ -61,7 +79,7 @@
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_category_tree"/>
<field name="search_view_id" ref="view_wiki_filter"/>
<field name="search_view_id" ref="view_document_category_filter"/>
</record>
<record id="action_category_view_tree" model="ir.actions.act_window.view">