Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
7807 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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

from odoo import fields
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
7
sep. 21
29274
4
mrt. 19
10285
1
aug. 18
4100
1
jan. 18
7635
1
okt. 25
419