Module Imports: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 20: Line 20:
{{ActivationModuleEn}}
{{ActivationModuleEn}}


See also page [[Setup Other]], to modify the separator and charset of CSV import/export.
See also page [[Setup Other]], to modify the separator and character set (charset) for import/export CSV files.


= Usage =
= Usage =
Importing legacy data will likely require many attempts/modifications of the data in the source file to produce a successful import. it is recommended to use LibreOffice/OpenOffice to "build" a source spreadsheet (.ods) and save as a csv for each modification, as the character set handling/csv definition is far superior to Excel for multibyte (acccented) text strings.
While most fields are logical in their contents, address data for provinces (StateID) is not. This field cannot imported as the name of the province (which may not be unique between countries, i.e."Florida") but needs to match a unique code already assigned to that province in the table llx_c_departements. These unique codes are not consistent between countries and while they may be looked up in the Admin-Setup-Dictionaries-State/Province, this is slow and cumbersome if you need to match provinces in different countries. One method would be to export this table as a CSV using a SQL editor, or open the installation file (htdocs/install/mysql/data/llx_20_c_departements.sql) with a text editor and search per province name.
To import a file:
To import a file:
* Go to the Tools menu - New import.
* Go to the Tools menu - New import.
98

edits

Navigation menu