Recommend:

<record model= "ir.ui.view" id= "view_id" > <field name= "name" > view.name </field> <field name= "model" > object_name </field> <field name= "priority" eval= "16" /> <field name= "arch" type= "xml" > <!-- view content: <form>, <tree>, <graph>, ... --> </field> </record>

Important: Here arch field must be declared as type="xml".

In the above code we used two elements the first one is "record" and the another is "field".

record - required two attributes id - uni que id is require to connect to action model - r equir ed scheme of ir.ui.view can be checked from the databas e



field - r equi red three attributes name="name" - here "name" is the title of form /tree view name="model" - here model will be the name of model that will be mapped to our vi ew (tree/form) name="arch" - view type is implied by th e root element of "arch" field. T he type of arch field must be declared as "xml" to be parsed corre ctly.



