İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
7166 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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

from odoo import fields
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
7
Eyl 21
28285
4
Mar 19
9706
1
Ağu 18
3589
1
Oca 18
6642
1
Tem 25
360