[IMP] improved module according to version 7 conventions

bzr revid: bde@tinyerp.com-20121101094556-s05h6ymbrxdgjfk1
This commit is contained in:
Bharat Devnani (OpenERP)
2012-11-01 15:15:56 +05:30
parent 5815b2c2e4
commit d73ccce5ba
2 changed files with 37 additions and 27 deletions
+16 -15
View File
@@ -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:
+21 -12
View File
@@ -22,23 +22,32 @@
<sheet>
<group>
<group>
<field name="name"/>
<field name="sequence"/>
<field name="active"/>
</group>
<group>
<field name="name"/>
<field name="active"/>
</group>
<separator string="Test Description"/>
<div colspan="4">
<field name="desc"/>
</div>
<separator string="Expression to evaluate"/>
<newline/>
<separator string="Python Code"/>
<div colspan="4">
<field colspan="4" name="code_exec"/>
</div>
</group>
<notebook colspan="4">
<page string="Description">
<field name="desc" nolabel="1"/>
</page>
<page string="Expression">
<group string="Python Code">
<field colspan="4" name="code_exec" nolabel="1"/>
</group>
<group string="Code Help">
<pre>
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()
</pre>
</group>
</page>
</notebook>
</sheet>
</form>
</field>