[IMP] account_usability_akretion: add filter on invoice/refund in invoice search view and invoice report search view

This commit is contained in:
Alexis de Lattre
2025-03-03 11:49:27 +01:00
parent 195a0203ab
commit 61a2205539
2 changed files with 6 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
</field>
<filter name="category_product" position="after">
<filter string="Product" name="product_groupby" context="{'group_by': 'product_id', 'residual_invisible':True}"/>
<filter name="invoice_refund_groupby" string="Invoice/Refund" context="{'group_by': 'move_type'}"/>
</filter>
<filter name="partner_id" position="after">
<filter name="industry_groupby" string="Partner Industry" context="{'group_by': 'industry_id'}"/>

View File

@@ -81,6 +81,11 @@
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_account_invoice_filter"/>
<field name="arch" type="xml">
<filter name="invoice_date" position="before">
<filter name="invoice" string="Invoices" domain="[('move_type', 'in', ('out_invoice', 'in_invoice'))]"/>
<filter name="refund" string="Refunds" domain="[('move_type', 'in', ('out_refund', 'in_refund'))]"/>
<separator/>
</filter>
<filter name="due_date" position="after">
<separator/>
<filter name="to_send" string="To Send" domain="[('is_move_sent', '=', False), ('state', '=', 'posted'), ('move_type', 'in', ('out_invoice', 'out_refund'))]"/>