Community mailing list archives

community@mail.odoo.com

RE: How remove demo data from installed openerp 7

by
hans.yonathan
- 11/10/2014 03:04:12

The simple answer is:

Don’t use demo data(checking demo data checkbox when you installed new database) in production database.

If you want to create a production database, never check the checkbox of demo data.

 

Because it will mark the database as demo database. So if you install the new module, and that module contain demo data, the system will automatically store that record.

 

Thank You.

 

Best Regards,

Hans Yonathan

Odoo Support

FALINWA Limited

Expert in Finance, Information System & Business Intelligence

Odoo Silver Partner

Website: www.falinwa.com

Tel. 13670137019 (China - Shenzhen)

 

From: Quentin THEURET [mailto:qt@tempo-consulting.fr]
Sent: Monday, November 10, 2014 3:59 PM
To: Community
Subject: Re: How remove demo data from installed openerp 7

 

On 10/11/2014 08:37, Clovis Nzouendjou wrote:

> There is an option provided for this: *--without-demo=module_name*.

> If you want to simply remove demo data from all modules, you can use

> --without-demo=ALL.

>

 

> I hope this will help you.

 

Hi,

 

I think it's not what was expected because Vishal wants to remove demo 

data from an installed database. The option --without-demo=module_name 

is useful only when you install a new module or generate a new database.

 

I think it's very easy to remove all demo data on an installed database 

because if they are used in other documents, the deletion may cause some 

breakdowns on your system.

 

If no other data have been put into you database, the best choice is to 

re-install a new database with the option mentioned above. In the other 

case, you have to find all //xml_id// of demo data and search the 

database ID of these //xml_id// with the help of the //ir_model_data// 

table. The //res_id// column of the //ir_model_data// table matches with 

the //id// column of the objects tables.

 

I hope this will help you.

 

Regards,

 

-- 

Quentin THEURET

 

TeMPO Consulting

20, Avenue de la paix

67000 Strasbourg

France

 

http://www.tempo-consulting.fr

Tel : +33 3 88 56 82 18

Fax : +33 9 70 63 35 46

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe