Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7183 Zobrazení

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šit
Nejlepší odpověď

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šit
Nejlepší odpověď

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

from odoo import fields
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
7
zář 21
28306
4
bře 19
9729
1
srp 18
3602
1
led 18
6660
1
čvc 25
371