Skip to Content
Menu
This question has been flagged
2 Replies
7820 Zobrazenia

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?

Avatar
Zrušiť
Best Answer

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

Avatar
Zrušiť
Best Answer

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

from odoo import fields
Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
7
sep 21
29282
4
mar 19
10292
1
aug 18
4102
1
jan 18
7658
1
okt 25
428