<assertmodel="account.account"search="[]"string="For all accounts, the balance is equal to the sum of the balance of its childs">
<testexpr="not len(child_id) or (balance - sum([c.balance for c in child_id]) <= 0.00001)"/>
</assert>
<assertmodel="account.move.line"search="[('account_id.type', '=', 'view')]"string="Accounts of view type do not contain any move line">
<testexpr="False"/>
</assert>
<assertmodel="account.invoice"search="[('state', 'in', ['paid', 'open'])]"string="The total amount of all paid or open invoices is correctly computed">
<testexpr="sum([l.price_subtotal for l in invoice_line]) - amount_untaxed <= 0.00001"/>
</assert>
<assertmodel="account.move.reconcile"search="[]"string="For each reconciliation, the sum of credits equals the sum of debits">
<testexpr="sum([l.debit - l.credit for l in line_id]) <= 0.00001"/>
</assert>
<assertmodel="account.account"search="[]"string="Every account must have at least one parent account of type '0'">
<testexpr="not parent_id or '0' in [p.code for p in parent_id]"/>