Skip to content

Rendscode/ERP-Tools

Repository files navigation

Dummy Data for Dolibarr ERP

#dolibarr #erp #company_data #demo

This set of functions creates fake company and contact data for the open source ERP System Dolibarr. Currently data can be created for instances of companies and (person) contacts within these companies.

Motivation

In order to demonstrate the capabilities of Dolibarr to prospects it's helpful to have a significant number of (dummy) contacts with different categories (customer, prospect, supplier; active / inactive...). This can also help showing the performance of a web hosted database with a large number of contacts.

Usage

Localisation

To have realistic looking data, the faker module is used. Faker can be customized to output data in country specific format and content: company and person names, civility of persons, address format, regional city names. To localize to your needs change the faker locale.

Output to file - import file format of Dolibarr

Dolibarr can input data via .csv files. From Dolibarr it's possible to output a template file. The structure of the file (entries and order of the entries in columns) can change from version to version. To easily obtain the structure use the read_structure function. data_structure = read_structure(TemplateFileName, dictionary_with_mapping)

Generate company data

  1. create CompanyData object
  2. call generate method

CG = GenerateCompanyData(outputfile_company, data_structure[0], count_company, test=test) company_name_and_address = CG.generate() generate_persondata_and_companydata(50, 20, GePartnerDatei, GeKontaktDatei, data_structure, test=False)

ToDos

  • enhance this README
  • add country code 's.fk_pays' - mandatory for some Dolibarr actions
  • get rid of the necessity to use absolute file paths for reference files
  • bring names into englisch
  • improve modularisation
  • create artifacts like products, stock of products in warehouse, product prices (supplier), leads, customer offers, customer receipts, supplier orders, supplier receipts

About

My set of tools for openSource ERP "Dolibarr" to fill freshly installled instance with dummy data for demo purposes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages