Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2555 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 15
8827
3
mar 15
10230
3
lug 17
3960
1
mar 15
6169
1
dic 22
16702