[FIX] account, general ledger report: fixed the strip_name function
[odoo/odoo.git] / addons / account / account_assert_test.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <assert model="account.move" search="[]" string="For all Journal Items, the state is valid implies that the sum of credits equals the sum of debits">
5             <test expr="not len(line_id) or line_id[0].state != 'valid' or (sum([l.debit - l.credit for l in line_id]) &lt;= 0.00001)"/>
6         </assert>
7     </data>
8 </openerp>