[IMP] account_ebics: add draft, done filters on ebics.file search view

This commit is contained in:
Luc De Meyer 2025-01-03 14:28:50 +01:00
parent 8e50d65885
commit 7425d6003b

View File

@ -6,7 +6,6 @@
<field name="model">ebics.file</field>
<field name="arch" type="xml">
<search string="Search EBICS Files">
<group col="10" colspan="4">
<field name="date_from" />
<field name="date_to" />
<field name="name" />
@ -17,16 +16,28 @@
widget="selection"
groups="base.group_multi_company"
/>
</group>
<newline />
<filter
string="Draft"
name="draft"
domain="[('state', '=', 'draft')]"
/>
<filter string="Done" name="done" domain="[('state', '=', 'done')]" />
<group expand="0" string="Group By">
<filter
string="File Format"
name="file_format"
context="{'group_by':'format_id'}"
/>
<filter string="State" name="state" context="{'group_by':'state'}" />
<filter string="User" name="user" context="{'group_by':'user_id'}" />
<filter
string="State"
name="state"
context="{'group_by':'state'}"
/>
<filter
string="User"
name="user"
context="{'group_by':'user_id'}"
/>
</group>
</search>
</field>
@ -124,7 +135,13 @@
<field name="arch" type="xml">
<form string="Process EBICS File">
<separator colspan="4" string="Results :" />
<field name="note_process" colspan="4" nolabel="1" width="850" height="400" />
<field
name="note_process"
colspan="4"
nolabel="1"
width="850"
height="400"
/>
<footer>
<button
name="action_open_bank_statements"
@ -145,7 +162,7 @@
<field name="res_model">ebics.file</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="False" />
<field name="domain">[('type','=','down')]</field>
<field name="domain">[('type', '=', 'down')]</field>
<field name="search_view_id" ref="ebics_file_view_search" />
</record>
@ -235,7 +252,7 @@
<field name="res_model">ebics.file</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="False" />
<field name="domain">[('type','=','up')]</field>
<field name="domain">[('type', '=', 'up')]</field>
<field name="search_view_id" ref="ebics_file_view_search" />
</record>