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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
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
Thank you for the help
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
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
Thank you for the help
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
juin 25
|
920 | ||
|
2
mars 22
|
12569 | ||
|
2
janv. 18
|
8603 | ||
|
2
avr. 15
|
12569 | ||
|
1
mars 15
|
9173 |