Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Generic view declaration in odoo9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 255
    Comment on it

    Generic view declaration is most important part of Odoo module. Here a view is declared as a record of the model ir.ui.view. The view type is implied by the root element of the arch field.
    For example code is below.

    <record model="ir.ui.view" id="view&#95;id">
        <field name="name">view.name</field>
        <field name="model">object&#95;name</field>
        <field name="priority" eval="16">
        <field name="arch" type="xml">
            <!-- view content: <form>, <tree>, <graph>, ... -->
        </field>
    </field></record>
    
    
       },
    });
    

    Note-The arch field must be declared as type="xml" to parsed correctly.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: