Odoo Help

1

1
3 Answers
0
Avatar

Yenthe Van Ginneken

--Yenthe Van Ginneken--
22778
| 9 9 12
Turnhout, België
--Yenthe Van Ginneken--

My Odoo training platform: https://www.oocademy.com
My Odoo blog: http://www.odoo.yenthevg.com/
My Twitter: https://twitter.com/Yenthe666

Yenthe Van Ginneken
14-03-19 05:28

Hi Nitin,

By default there is no easy way to do it in Odoo. If you create a new database you have to choose if it is a demo database or not. If you choose for a demo database all demo data from all modules will be loaded and there is no technical option to specify this per module. You could technically inherit the default Odoo module(s) and remove the demo data again but that's probably not a good idea to do.


If you do not work with a demo database you could move your own 'demo' data into default data though. The default data is always loaded which means all your data will be shown, also if it is no demo database. For example under /data you have a file named 'your_table.xml':

<?xml version="1.0" ?>
<odoo>
    <data noupdate="1">
        <record id="sample_record_1" model="your.table">
            <field name="name">First record</field>
        </record>
</odoo>

You can then load it in the __manifest__.py under 'data' like this:

'data': [data/your_table.xml']

Regards,

Yenthe


Regards,
Yenthe

1
Aaquib Kardame
14-03-19 05:51

Hello Nitin,


First create database by running odoo service as below:


./odoo-bin -d db_name –without-demo=WITHOUT_DEMO


Then install the module for which you want to install demo data through following command:

./odoo-bin -d db_name -i module_name


And it will work ....


Thanks and Regards,

Aaquib Kardame.

1 Opmerking
Nitin Kantak
14-03-19 09:08

Great !! This is what I needed. Working. Thanks.

0
Avatar

Cybrosys Techno Solutions Pvt.Ltd

--Cybrosys Techno Solutions Pvt.Ltd--
Cybrosys Technologies
https://www.cybrosys.com
16252
| 7 6 10
Calicut, India
--Cybrosys Techno Solutions Pvt.Ltd--

Cybrosys Technologies is a private limited ISO certified company in Technology and Software Engineering sector. We serve as one of the best and trusted Odoo official partner, providing ultimate Customization and Implementation services in Odoo ERP. A frequent contributor to Odoo Apps, our customized free apps are downloaded by more than one lakh users. Most of our apps augment the potentialities of Odoo and are trending in the Odoo app store.

Cybrosys keeps privilege to be one among the finest Odoo Official Partners with 200+ free apps contribution towards the Odoo community. Cybrosys also stands number one in Odoo-social Media Integration empowering every kind of business solutions.

We are also enriched with highly skilled UI/UX technical experts for Developing, Implementing and Designing, thereby providing ultimate benefit to our customer base.

Today Cybrosys has reached par excellent in Odoo Implementation and allied services, proving its credibility and reliability. Our proven services are used by customers sprawling across 160+ countries including Middle East, African continents, UK, Germany, Spain, Thailand, Hong Kong, New Zealand, Australia, Malaysia, Singapore, Egypt etc.

We are rapidly expanding our base with robust quality management and business process re-engineering to meet the ultimate customer desire.

To know more about Cybrosys Technologies and our Odoo Apps, Kindly visit:

Cybrosys Technologies 

Odoo Apps 

And inbox us your queries to odoo@cybrosys.com

Cybrosys Techno Solutions Pvt.Ltd
14-03-19 05:26

Hi,
If you enable demo data, it will load the demo data of the all the module. In your case i feel it is better to load you data as data file, rather than demo file, so that the demo data of the other module will not get installed and you will get what you need.

 

See the sample data  file in the account module,



Link: https://github.com/odoo/odoo/blob/12.0/addons/account/data/data_account_type.xml

Thanks

Stel een vraag
Writer
Keep Informed
2 volger(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now