Skip to content

Commit

Permalink
[IMP] request_document: add search filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Dec 16, 2024
1 parent 1afb367 commit 7601346
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion request_document/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Request Document",
"version": "15.0.1.0.0",
"version": "15.0.1.1.0",
"license": "AGPL-3",
"category": "Accounting & Finance",
"author": "Ecosoft, Odoo Community Association (OCA)",
Expand Down
26 changes: 26 additions & 0 deletions request_document/views/request_request_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="create_uid" />
<field name="company_id" groups="base.group_multi_company" />
<field
name="state"
Expand Down Expand Up @@ -71,6 +72,7 @@
</div>
<group>
<group name="request_left">
<field name="create_uid" />
</group>
<group name="request_right">
<field
Expand All @@ -93,6 +95,30 @@
</form>
</field>
</record>
<record id="view_request_request_search" model="ir.ui.view">
<field name="name">view.request.request.search</field>
<field name="model">request.request</field>
<field name="arch" type="xml">
<search>
<field name="name" />
<field name="create_uid" />
<group string="Group By">
<filter
name="groupby_create_by"
string="Created By"
domain="[]"
context="{'group_by': 'create_uid'}"
/>
<filter
name="groupby_state"
string="State"
domain="[]"
context="{'group_by': 'state'}"
/>
</group>
</search>
</field>
</record>

<record id="action_request_request" model="ir.actions.act_window">
<field name="name">Requests</field>
Expand Down

0 comments on commit 7601346

Please sign in to comment.