Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
10546 Zobrazení

How do i load demo data in an Odoo module? I have created an XML file with demo data. Given the file name in manifest.py file as value of 'demo' key. but it is not loading the data. when i give it for 'data' key, it is loading. Is there anything to do for loading the data?

Avatar
Zrušit
Nejlepší odpověď

Hi,
To load demo data, when creating the db, the "Demo data" boolean has to be ticked, if not, demo data's wont be loaded in the db.

* Create a new db with Demo data ticked
* Now try installing your app and see





Thanks

Avatar
Zrušit
Autor

Thank you for the help

Autor

What if I created data.xml after creating a module? Can I add it without creating a new db?

just you need to upgrade the module in this case

Nejlepší odpověď

If you create db via command line like using an ide for example, make sure when before creating database the option : --without-demo=False.

And  if you create db via interface just follow the Niyas Raphy guilde

Avatar
Zrušit
Autor

Thank you for the help

Related Posts Odpovědi Zobrazení Aktivita
1
čvn 25
1428
2
bře 22
13038
2
led 18
9060
2
dub 15
13176
1
bře 15
9646