diff --git a/addons/account_test/__openerp__.py b/addons/account_test/__openerp__.py index 3e98734fe72..cfd4007fed0 100644 --- a/addons/account_test/__openerp__.py +++ b/addons/account_test/__openerp__.py @@ -29,6 +29,10 @@ Asserts on accounting. ====================== With this module you can manually check consistencies and inconsistencies of accounting module from menu Reporting/Accounting/Accounting Tests. + +You can write a query in order to create Consistency Test and you will get the result of the test +in PDF format which can be accessed by Menu Reporting -> Accounting Tests, then select the test +and print the report from Print button in header area. """, 'depends' : ['account'], 'data' : [ @@ -37,9 +41,6 @@ With this module you can manually check consistencies and inconsistencies of acc 'account_test_report.xml', 'account_test_data.xml', ], - 'demo': [ - 'account_test_demo.xml', - ], 'active': False, 'installable': True } diff --git a/addons/account_test/account_test_data.xml b/addons/account_test/account_test_data.xml index 2a23c1196f9..4970bef6a0d 100644 --- a/addons/account_test/account_test_data.xml +++ b/addons/account_test/account_test_data.xml @@ -22,7 +22,7 @@ if res[0]['balance']!=0.0 and res[0]['balance'] is not None: 2 Test 2: Opening a fiscal year - Displays the debit and credit amount, of closed and newly created fiscal year, if the balance of current and newly created fiscal year mismatch + Check if the balance of the new opened fiscal year matches with last year's balance - - - - - 11 - Test 11: Consistency check between Account Move and Account Move Line - Checks id of 'account_move' = move_id of 'account_move_line', and state of 'account_move_line' is valid, and having sum(debit-credit) != 0 - - 0""" -cr.execute(sql) -result = cr.dictfetchall() -]]> - - - - diff --git a/addons/account_test/account_test_view.xml b/addons/account_test/account_test_view.xml index 46f02d81d3b..1faca55c4d6 100644 --- a/addons/account_test/account_test_view.xml +++ b/addons/account_test/account_test_view.xml @@ -39,15 +39,15 @@
-You can write a query in order to create Consistency Test and you will get the result of the test 
-in PDF format which can be accessed by Menu Reporting -> Accounting Tests, then select the test 
-and print the report from Print button in header area.
+Code should always return a result value. If result is an empty list, it means that
+the test is succesful. Otherwise it will print what is inside result.
+Code must be python with correct indentation (if needed).
+Here is a list of function that you can use in your test :
+ - group(lst, col) : 
+ - reconciled_inv() : return the list of all reconciled invoices
+ - get_parent(acc_id) : get parent analytical account
+ - now() : return current datetime
 
-You can also use the following functions:
-
-get_parent(acc_id) : return parent id of analytic account(acc_id)
-reconciled_inv() : returns ids of records which are reconciled
-    
 Example: 
 sql = 'select id, name, ref, date from account_move_line where account_id in 
 (select id from account_account where type = 'view')'