Community mailing list archives

community@mail.odoo.com

R: Script to imort product and images

by
Luca Carabelli
- 05/12/2015 06:49:32


Luca Carabelli

Politecnici S.r.l.
Via dell'Artigiano, 20
37010 Albaré di Costermano (VR)
Tel: +39 045 6201295 (r.a.)
Fax: +39 045 6201877
Email: luca.carabelli@politecnici.com
Web: www.politecnici.com
Blog: www.politecnici.blogspot.com
Da: Martin Trigaux
Inviato: martedì 12 maggio 2015 11:42
A: Community
Rispondi a: Odoo S.A. Community
Oggetto: Re: Script to imort product and images

On 11/05/15 18:13, Sebastien Beau wrote:
> What we need is a generator of data so we can test Odoo with some hard
> condition (10k, 100K, 1M... products).
> Did some of you have already work on a data generator for Odoo ?
> Do you know tool for generating random images?

Sorry we don't have such tools but creating a script should be not too hard:
- generate a XML files with all the data to import (LXML)
- set random data for the fields (faker or loremipsum library)
- there is tons of scripts to generate random image out there (PIL seems
to be able to do so)

And you can set this new XML file as a demo data in the manifest of your
module.

-- 
Martin Trigaux
Odoo (Formerly OpenERP)
https://odoo.com
https://github.com/mart-e

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