Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
7407 Переглядів

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?

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

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

from odoo import fields
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
7
вер. 21
28642
4
бер. 19
9902
1
серп. 18
3796
1
січ. 18
6848
1
вер. 25
1153