Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
7167 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

from odoo import fields
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
7
wrz 21
28286
4
mar 19
9708
1
sie 18
3590
1
sty 18
6644
1
lip 25
363