跳至內容
選單
此問題已被標幟
2 回覆
7174 瀏覽次數

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
9月 21
28289
4
3月 19
9716
1
8月 18
3593
1
1月 18
6649
1
7月 25
363