Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
7171 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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

from odoo import fields
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
7
set 21
28288
4
mar 19
9713
1
ago 18
3593
1
gen 18
6646
1
lug 25
363