콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
9071 화면

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

관련 게시물 답글 화면 활동
1
6월 25
1069
2
3월 22
12691
2
1월 18
8706
2
4월 15
12739
1
3월 15
9297