Skip to content

Commit c85e8bb

Browse files
committed
[IMP] account: add a search field to search for journal items by debit/credit
when typing a number in the search, a new field depending on either the debit or credit can now be used to filter journal items, this is better than using just the balance field because the balance can be negative while debit or credit are always positive values task id: 5231294
1 parent 9ae5720 commit c85e8bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/account/views/account_move_views.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@
309309
<field name="name"/>
310310
<field name="ref"/>
311311
<field name="invoice_date"/>
312+
<field name="debit" string="Debit/Credit" filter_domain="['|',('debit', '=', self), ('credit', '=', self)]"/>
312313
<field name="date"/>
313314
<field name="date_maturity" string="Due Date"/>
314315
<field name="discount_date" string="Discount Date"/>

0 commit comments

Comments
 (0)