Search code examples
odoorecordproductautofill

Odoo auto create records on module install


I'd like to make some products (data records) automatically when I install my module. Any ideas?

Is this possible from the views.xml?

Thanks.


Solution

  • For creating the demo data for the specific model try this link

    Ensure these two thing:

    1. Place noupdate="1" with the data tag.
    2. Make it entry in openerp.py Like:

       'data': [       
          'data/my_demo_data.xml',       
       ],