summaryrefslogtreecommitdiff
path: root/addons/account/account_assert_test.xml
diff options
context:
space:
mode:
authorstw <>2008-06-29 08:26:07 +0000
committerstw <>2008-06-29 08:26:07 +0000
commitc60cae0a8c19c7ba4fc2a3aea12a10627cd134e2 (patch)
tree57bbf227fad883c122bc393ce8048f58aa44d329 /addons/account/account_assert_test.xml
parentf7b9bc52b31519d025d9bc63aabb23c9a29cfd93 (diff)
reindent all xml files
bzr revid: stw-c7b064849fe1f51bf264dd2de76920ded909d158
Diffstat (limited to 'addons/account/account_assert_test.xml')
-rw-r--r--addons/account/account_assert_test.xml55
1 files changed, 28 insertions, 27 deletions
diff --git a/addons/account/account_assert_test.xml b/addons/account/account_assert_test.xml
index 42e1e889db5..a94cf8507d8 100644
--- a/addons/account/account_assert_test.xml
+++ b/addons/account/account_assert_test.xml
@@ -1,32 +1,33 @@
<?xml version="1.0"?>
<terp>
- <data>
- <assert model="account.move" search="[]" string="For all account moves, the state is valid implies that the sum of credits equals the sum of debits">
- <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)" />
- </assert>
-
- <!--assert model="account.invoice" search="[]" string="If the invoice is paid, third party accounting lines must be reconciled">
+ <data>
+ <assert model="account.move" search="[]" string="For all account moves, the state is valid implies that the sum of credits equals the sum of debits">
+ <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)" />
+ </assert>
+
+ <!--assert model="account.invoice" search="[]" string="If the invoice is paid, third party accounting lines must be reconciled">
<test expr="not state == 'paid' or ..." />
</assert-->
-
- <assert model="account.account" search="[]" string="For all accounts, the balance is equal to the sum of the balance of its childs">
- <test expr="not len(child_id) or (balance - sum([c.balance for c in child_id]) &lt;= 0.00001)" />
- </assert>
-
- <assert model="account.move.line" search="[('account_id.type', '=', 'view')]" string="Accounts of view type do not contain any move line">
- <test expr="False" />
- </assert>
-
- <assert model="account.invoice" search="[('state', 'in', ['paid', 'open'])]" string="The total amount of all paid or open invoices is correctly computed">
- <test expr="sum([l.price_subtotal for l in invoice_line]) - amount_untaxed &lt;= 0.00001" />
- </assert>
-
- <assert model="account.move.reconcile" search="[]" string="For each reconciliation, the sum of credits equals the sum of debits">
- <test expr="sum([l.debit - l.credit for l in line_id]) &lt;= 0.00001" />
- </assert>
-
- <assert model="account.account" search="[]" string="Every account must have at least one parent account of type '0'">
- <test expr="not parent_id or '0' in [p.code for p in parent_id]" />
- </assert>
- </data>
+
+ <assert model="account.account" search="[]" string="For all accounts, the balance is equal to the sum of the balance of its childs">
+ <test expr="not len(child_id) or (balance - sum([c.balance for c in child_id]) &lt;= 0.00001)" />
+ </assert>
+
+ <assert model="account.move.line" search="[('account_id.type', '=', 'view')]" string="Accounts of view type do not contain any move line">
+ <test expr="False" />
+ </assert>
+
+ <assert model="account.invoice" search="[('state', 'in', ['paid', 'open'])]" string="The total amount of all paid or open invoices is correctly computed">
+ <test expr="sum([l.price_subtotal for l in invoice_line]) - amount_untaxed &lt;= 0.00001" />
+ </assert>
+
+ <assert model="account.move.reconcile" search="[]" string="For each reconciliation, the sum of credits equals the sum of debits">
+ <test expr="sum([l.debit - l.credit for l in line_id]) &lt;= 0.00001" />
+ </assert>
+
+ <assert model="account.account" search="[]" string="Every account must have at least one parent account of type '0'">
+ <test expr="not parent_id or '0' in [p.code for p in parent_id]" />
+
+ </assert>
+ </data>
</terp>