Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7207 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

from odoo import fields
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
7
thg 9 21
28360
4
thg 3 19
9757
1
thg 8 18
3620
1
thg 1 18
6673
1
thg 7 25
410