2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-06-29 08:26:07 +00:00
|
|
|
<data>
|
2010-08-24 13:06:22 +00:00
|
|
|
<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">
|
2008-07-01 15:58:58 +00:00
|
|
|
<test expr="not len(line_id) or line_id[0].state != 'valid' or (sum([l.debit - l.credit for l in line_id]) <= 0.00001)"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</assert>
|
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|