Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2566 มุมมอง

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'

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
8839
3
มี.ค. 15
10236
3
ก.ค. 17
3967
1
มี.ค. 15
6173
ImportError: No module named wizard แก้ไขแล้ว
1
ธ.ค. 22
16712