[IMP] made compatible to version 7.0

bzr revid: bde@tinyerp.com-20121101073208-i1s4m2jca2qvraik
This commit is contained in:
Bharat Devnani (OpenERP) 2012-11-01 13:02:08 +05:30
parent 1498002350
commit 5815b2c2e4
2 changed files with 38 additions and 38 deletions

View File

@ -2,10 +2,9 @@
<openerp>
<data>
<record model="ir.ui.view" id="account_assert_tree">
<field name="name">Tests</field>
<field name="model">accounting.assert.test</field>
<field name="type">tree</field>
<record model="ir.ui.view" id="account_assert_tree">
<field name="name">Tests</field>
<field name="model">accounting.assert.test</field>
<field name="arch" type="xml">
<tree string="Tests">
<field name="sequence"/>
@ -14,43 +13,44 @@
</tree>
</field>
</record>
<record model="ir.ui.view" id="account_assert_form">
<field name="name">Tests</field>
<field name="model">accounting.assert.test</field>
<field name="type">form</field>
<record model="ir.ui.view" id="account_assert_form">
<field name="name">Tests</field>
<field name="model">accounting.assert.test</field>
<field name="arch" type="xml">
<form string="Tests">
<group colspan="4" col="4">
<field name="name"/>
<field name="active"/>
<field name="sequence"/>
<newline/>
<field name="desc" colspan="4" height="50" />
</group>
<separator string="Expression to evaluate" colspan="4"/>
<group colspan="4" col="4">
<separator string="Python Code" colspan="4" />
<newline />
<field colspan="4" name="code_exec" nolabel="1" width="100" height="400" />
<separator string="Code Help" colspan="4"/>
<newline />
<label colspan="4"><![CDATA[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()]]></label>
</group>
<form string="Tests" version="7.0">
<sheet>
<group>
<group>
<field name="sequence"/>
<field name="active"/>
</group>
<group>
<field name="name"/>
</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>
</sheet>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_accounting_assert">
<field name="name">Accounting Tests</field>
<field name="res_model">accounting.assert.test</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Accounting Tests" parent="account.menu_finance_reporting" id="menu_action_license" action="action_accounting_assert"/>
<record model="ir.actions.act_window" id="action_accounting_assert">
<field name="name">Accounting Tests</field>
<field name="res_model">accounting.assert.test</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Accounting Tests" parent="account.menu_finance_reporting" id="menu_action_license" action="action_accounting_assert"/>
</data>
</data>
</openerp>