Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
7223 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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

from odoo import fields
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
7
Sept. 21
28376
4
März 19
9772
1
Aug. 18
3629
1
Jan. 18
6683
1
Juli 25
414