Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to creating the views in odoo-9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 277
    Comment on it

    If you have the database part ready it is time to create your view.
    Example:- I have created a simple form view and tree view which shows the fields name, numberOfUpdates and lastModified as created in our model:

    <record id="view_check_record_form" model="ir.ui.view">
        <field name="name">check.demo.form</field>
        <field name="model">check.demo</field>
        <field name="arch" type="xml">
            <form string="Schedule record">
        <group>
    <field name="name"/>
    <field name="numberOfUpdates"/>
    <field name="lastModified"/>
                </group>
            </form>
        </field>
    </record>
    
    <!-- tree (list) view-->
    <record id="view_check_tree" model="ir.ui.view">
        <field name="name">check.demo.tree</field>
        <field name="model">check.demo</field>
        <field name="arch" type="xml">
            <tree string="Schedule records">
        <field name="name"/>
        <field name="numberOfUpdates"/>
        <field name="lastModified"/>
            </tree>
        </field>
    </record>
    

 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: