From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- .../views/accounting_assert_test_views.xml | 97 ++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 addons/account_test/views/accounting_assert_test_views.xml (limited to 'addons/account_test/views/accounting_assert_test_views.xml') diff --git a/addons/account_test/views/accounting_assert_test_views.xml b/addons/account_test/views/accounting_assert_test_views.xml new file mode 100644 index 00000000..f755d931 --- /dev/null +++ b/addons/account_test/views/accounting_assert_test_views.xml @@ -0,0 +1,97 @@ + + + + + accounting.assert.test.tree + accounting.assert.test + + + + + + + + + + + accounting.assert.test.form + accounting.assert.test + +
+ + + + + + + + + + + + + + + + + + + +
+Code should always set a variable named `result` with the result of your test, that can be a list or
+a dictionary. If `result` is an empty list, it means that the test was successful. Otherwise it will
+try to translate and print what is inside `result`.
+
+If the result of your test is a dictionary, you can set a variable named `column_order` to choose in
+what order you want to print `result`'s content.
+
+Should you need them, you can also use the following variables into your code:
+    * cr: cursor to the database
+    * uid: ID of the current user
+
+In any ways, the code must be legal python statements with correct indentation (if needed).
+
+Example: 
+    sql = '''SELECT id, name, ref, date
+             FROM account_move_line 
+             WHERE account_id IN (SELECT id FROM account_account WHERE type = 'view')
+          '''
+    cr.execute(sql)
+    result = cr.dictfetchall()
+                                    
+
+
+
+
+
+
+
+ + + accounting.assert.test.view.search + accounting.assert.test + + + + + + + + + + + + Accounting Tests + accounting.assert.test + tree,form + + +

+ Create a new accounting test +

+
+
+ + + +
-- cgit v1.2.3