Skip to content

Commit ae924d6

Browse files
committed
[FIX] account: allow journal item search by amount
Purpose ------- Allow searching journal items by their amount directly from the search bar. This improves usability when accountants want to find entries with a specific amount. Changes ------- - Added a custom search on `amount` field of `account.move.line`. - Enables syntax like `amount:123.45` in the search bar on the Journal Items list. How to test ----------- 1. Go to Accounting > Journal Items. 2. In the search bar, type `amount:42.0` (replace 42.0 with a known amount). 3. Only journal items with exactly that amount should appear.
1 parent 6819f50 commit ae924d6

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
@@ -306,6 +306,7 @@
306306
'|', '|', '|',
307307
('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"/>
308308
<field name="name"/>
309+
<field name="balance" string="Amount" filter_domain="['|', ('credit', '=', self), ('debit', '=', self)]"/>
309310
<field name="ref"/>
310311
<field name="invoice_date"/>
311312
<field name="date"/>

0 commit comments

Comments
 (0)