From d73ccce5ba6c15e1a93b3da4f8478b77ea58ee35 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Thu, 1 Nov 2012 15:15:56 +0530 Subject: [PATCH] [IMP] improved module according to version 7 conventions bzr revid: bde@tinyerp.com-20121101094556-s05h6ymbrxdgjfk1 --- addons/account_test/__openerp__.py | 31 ++++++++++----------- addons/account_test/account_test_view.xml | 33 ++++++++++++++--------- 2 files changed, 37 insertions(+), 27 deletions(-) diff --git a/addons/account_test/__openerp__.py b/addons/account_test/__openerp__.py index 5578f0339ae..13328cddcb4 100644 --- a/addons/account_test/__openerp__.py +++ b/addons/account_test/__openerp__.py @@ -20,23 +20,24 @@ # ############################################################################## { - "name" : "OpenERP", - "version" : "1.0", - "author" : "OpenERP", - "category" : "Test accounting", - "website": "http://www.openerp.com", - "description": "Asserts on accounting", - "depends" : ["account"], - "update_xml" : [ - "account_test_view.xml", - "account_test_report.xml", - "security/ir.model.access.csv", - "account_test_data.xml", + 'name' : 'Accounting Consistency Tests', + 'version' : '1.0', + 'author' : 'OpenERP', + 'category' : 'Test accounting', + 'website': 'http://www.openerp.com', + 'description': """Asserts on accounting + =====================""", + 'depends' : ['account'], + 'data' : [ + 'security/ir.model.access.csv', + 'account_test_view.xml', + 'account_test_report.xml', + 'account_test_data.xml', ], 'demo_xml': [ - "account_test_demo.xml", + 'account_test_demo.xml', ], - "active": False, - "installable": True + 'active': False, + 'installable': True } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account_test/account_test_view.xml b/addons/account_test/account_test_view.xml index 5f0d7f45090..c6fc0c8294b 100644 --- a/addons/account_test/account_test_view.xml +++ b/addons/account_test/account_test_view.xml @@ -22,23 +22,32 @@ + - - + - -
- -
- - - -
- -
+ + + + + + + + + +
+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()
+                                    
+
+
+