Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7214 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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

from odoo import fields
Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
7
syysk. 21
28366
4
maalisk. 19
9764
1
elok. 18
3622
1
tammik. 18
6675
1
heinäk. 25
413