Here below is the code.On saving the form it saves, But when i clicked on the tree view the form which i created was not there..it not showing any thing..Why it is not fetching from database??
<record model="ir.ui.view" id="demo_view_tree_view">
<field name="name">demo.view.tree</field>
<field name="model">demo.view</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string=" View" >
<field name="project_name"/>
<field name="code"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="demo_view_form_view">
<field name="name">demo.view.form</field>
<field name="model">demo.view</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Sample">
<sheet>
<group>
<field name="project_name" />
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_demo_view_bam">
<field name="name">Projects</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">demo.view</field>
<field name="view_type">form</field>
<field name="view_id" ref="demo_view_tree_view"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to enter .
</p><p>
Use this menu to enter the details .
</p>
</field>
</record>
I have tried this too . and also created a Create function for this model.then also tree view showing nothing and when i tried to access the database it showing some kind of access errors and all