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

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
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How To Calculate Age From Birthday แก้ไขแล้ว
7
ก.ย. 21
28360
4
มี.ค. 19
9756
1
ส.ค. 18
3620
Call a function through Url แก้ไขแล้ว
1
ม.ค. 18
6673
1
ก.ค. 25
410