تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2318 أدوات العرض

Hi,

I am trying to migrate a module from odoo 9 to odoo 14. 

One of the errors I got was "expected singleton" in certain methods, and the solution was to get rid of the api.multi and api.one decorators and use for loops in methods (for rec in self). This solved most of the "expected singleton" errors, but now I'm getting one like this:

Exception: Module loading infrastructure failed: file infrastructure/data/infrastructure.database_type.csv could not be processed:
Unknown error during import: : Expected singleton: infrastructure.environment(1, 2) - - -


In all the other cases the "expected singleton" pointed me to a specific method in a specific .py file, which i was able to fix. Now however I am not sure how to approach this because it seems to point to csv file.

Has anyone encountered this, maybe know how best to proceed?

Thank you! 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
6
مارس 19
9183
3
مارس 19
6788
0
مارس 15
3281
1
ديسمبر 21
4009
2
مايو 15
11065