mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-24 06:07:44 -06:00
[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:
committed by
Dũng (Trần Đình)
parent
980fa17243
commit
465dadd5c4
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user