Emmanuel Mtali
Emmanuel Mtali

Reputation: 4973

How to load demonstration data after database creation ODOO

i have created the database without checking Load demonstration data. image
Now my code is failing to obtain demo_user on my tests :: As expected

user_demo = self.env.ref('base.user_demo')

ValueError: External ID not found in the system: base.user_demo

Now how can i load demonstration data

Upvotes: 0

Views: 515

Answers (2)

seko23
seko23

Reputation: 21

Depending on the Odoo version, at least since Odoo 12 it is possible to load demo data later:

  • Go to "Settings" -> "General Settings", scroll to the very bottom.
  • Click "Activate the developer mode".
  • Click on the little bug icon (top right) to open the developer's menu.
  • Click "Become Superuser".
  • Now in "Settings" -> "General Settings", scroll to the very bottom again
  • Click "Load demo data".

Screenshot: Odoo settings, load demo data link

Upvotes: 2

Harlan
Harlan

Reputation: 101

Well the answer is in your question, demonstration data is loaded only when a database is created with that "Load demonstration data" option.

Upvotes: 1

Related Questions