Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Demonstration data in Odoo-9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 652
    Comment on it

    Demonstration data is the most important data in odoo-9 so it's possible to test it easily. This is done by adding a demodata file, which must be linked from the manifest. For example you can see below code .

    <openerp>
        <data>
            <record id="padilla" model="academy.teachers">
                <field name="name">Diana Padilla</field>
            </record>
            <record id="carroll" model="academy.teachers">
                <field name="name">Jody Carroll</field>
            </record>
            <record id="vaughn" model="academy.teachers">
                <field name="name">Lester Vaughn</field>
            </record>
        </data>
    </openerp>
    

    Note- Data files can be used for demo and non-demo data. Demo data are only loaded in "demonstration mode"

 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: