Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
2587 Näkymät

Hello, i need help.


So i created a .csv file iin the data/ directory of my custom add on module like so:


/my_module

    /data

        model.name.csv

    /model

        model_name.py


In the __manifest__ file, i also added 

"data/model.name.csv"


However, i am still encountering an error upon installation of the module:

Exception: Module loading my_module failed: file my_module/data/module.name.csv could not be processed:
No matching record found for name 'data number 1' in field 'Module Name'

Avatar
Hylkää
Tekijä Paras vastaus

I forgot that the declaration of files in the manifest folder should be in order. Fixed this issue by re-ordering the data/ in the manifest file

Avatar
Hylkää
Paras vastaus

Hi,

The exception is pointing that there is issue in the csv file that you are trying to import. Especially for the value data number 1 in the csv file, check whether the data number 1 value is correct and properly mapped to the field.


Thanks

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
maalisk. 15
8853
3
maalisk. 15
10239
3
heinäk. 17
3968
1
maalisk. 15
6182
1
jouluk. 22
16723