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

I need to upgrade a module from 9 to 10, and use the openerp / osv / fields.py module to use the field (funtion).

I have checked in the odoo 10 and I see that the fields.py is not being, how can I do it?

الصورة الرمزية
إهمال
أفضل إجابة

This is an obligatory read when converting from the old-api style to the new-api style introduced in v8 and the only option in v10

https://www.odoo.com/documentation/10.0/reference/orm.html

الصورة الرمزية
إهمال
أفضل إجابة

Hi. Not sure what you mean, but guess the following would be enough:

from odoo import fields
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
7
سبتمبر 21
28288
4
مارس 19
9713
1
أغسطس 18
3593
1
يناير 18
6646
1
يوليو 25
363