Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
2257 Prikazi

I'm going through the python development tutorial, and i'm trying to add some demo data to my real estate module. I have created a demo.xml file inside a separate directory 'demo' inside my module, and added the path inside the manifest file under the key 'demo'. the issue is, the demo file is not being loaded, I even checked the log while initiating the odoo session; all the files are being loaded but not the demo file as if i did not mention it at all inside the manifest file.

'name':'estate',
'application': True,
'installable':True,
'depends':['base'],
'category':'Real Estate/Brokerage',
'data':[
'./security/estate_security.xml',
'./security/ir.model.access.csv',
'./views/estate_property_views.xml',
'./views/property_type_views.xml',
'./views/property_tag_views.xml',
'./views/property_offer_views.xml',
'./views/estate_menus.xml',
'./views/res_users_inherited_view.xml',
'./data/estate.property.type.csv',
'./demo/demo.xml'
]
}

I'm using the following shell command to launch the odoo session:

./odoo --addons-path='/home/user/odoo_src/odoo/addons','/home/user/odoo_src/custom' -d rd-demo -u estate,estate_account --dev xml

What would the issue be? (NOTE: using Odoo 16.0)

Avatar
Opusti

When you created the DB did you select demo data check box?

Avtor Best Answer

hi , thank you for replying.

I tried this order and putting demo files as values for a different key 'demo' in the manifest as you pointed, but still, the demo files are not being loaded.

Avatar
Opusti
Best Answer

Hi Obada,

Please check whether the views are given in the manifest as the following order or not?

# data files always loaded at installation
'data': [
'views/mymodule_view.xml',
],
# data files containing optionally loaded demonstration data
'demo': [
'demo/demo_data.xml',
],

Regards

Avatar
Opusti