mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-29 11:56:30 -06:00
Search on and groupby document type
This commit is contained in:
parent
2bd6f94dab
commit
5369b52ed6
@ -21,6 +21,20 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<record id="ir_attachment_view_search_document_type" model="ir.ui.view">
|
||||||
|
<field name="name"></field>
|
||||||
|
<field name="model">ir.attachment</field>
|
||||||
|
<field name="inherit_id" ref="base.view_attachment_search"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<search position="inside">
|
||||||
|
<field name="document_type_id"/>
|
||||||
|
</search>
|
||||||
|
<xpath expr="//group" position="inside">
|
||||||
|
<filter name="group_by_document_type" string="Document Type" domain="[]" context="{'group_by': 'document_type_id'}"/>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<record id="ir_attachment_action_upload_type" model="ir.actions.act_window">
|
<record id="ir_attachment_action_upload_type" model="ir.actions.act_window">
|
||||||
<field name="name">Attachment upload typle selection action</field>
|
<field name="name">Attachment upload typle selection action</field>
|
||||||
<field name="res_model">ir.attachment</field>
|
<field name="res_model">ir.attachment</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user