コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
5892 ビュー

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?

アバター
破棄
最善の回答

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

関連投稿 返信 ビュー 活動
2
3月 22
11820
2
1月 18
7965
2
4月 15
11567
1
3月 15
8475
1
3月 15
5418