[FIX] account: search panel amount domain

In Language settings, change decimal separator to ','
Go to Journal Items
In the search bar input '4,50' and search for 'Amount'

Error: ValueError: could not convert string to float: '4,50'

This occurs becuase when the search component assemble the domain for the
orm we use the original string '4,50' and not the parsed value '4.5'

opw-3700578

closes odoo/odoo#152075

Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2024-02-01 16:25:42 +00:00
parent 80fecea382
commit 70432d7052
+1 -1
View File
@@ -317,7 +317,7 @@
<field name="date"/>
<field name="date_maturity" string="Due Date"/>
<field name="discount_date" string="Discount Date"/>
<field name="balance" string="Amount" filter_domain="['|', ('credit', '=', self), ('debit', '=', self)]"/>
<field name="balance" string="Amount" filter_domain="['|', ('credit', '=', raw_value), ('debit', '=', raw_value)]"/>
<field name="account_id"/>
<field name="account_type"/>
<field name="partner_id"/>