Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6647 Vizualizări

Note (Sorry for question because i'm new in Odoo)

how to declear osv.osv and osv.osv_memory and osv.TransientModel
in Odoo 10.

some developer use old and new style with combine.
i want to know complete list of new development by Odoo 10 as well compare others

can any one tell me
how to deal with osv.osv_memory and osv.osv in new api ???
just like Odoo replace __openerp__.py to __manifest__.py as well as import openerp to import Odoo
i want to know all list of replace by Odoo in new style api developement for odoo 10
Explain complete list...
for Example
1)    __openerp__.py   replace by __manifest__.py

2)    osv.osv_memory replace by osv.TransitModel
3)    osv.osv                replace by  i don't know

)
if i'm wrong please correct list and add more ....

Imagine profil
Abandonează
Cel mai bun răspuns

No need to be sorry!!

osv.osv and orm.Model is deprecated and it still works for backward compatibility. You should use models.Model instead.

In Odoo 6, Odoo 7, Odoo 8, Odoo 9, Odoo 10

1)  osv.osv(6) -------->  orm.Model(7)    ----------> models.Model(8,9,10)

2)  osv.osv_memory(6) --------->  orm.TransientModel(7)   ----------> models.TransientModel(8,9,10)



Imagine profil
Abandonează
Autor

thanks for answer....

can you tell me use of models.AbstractModel ?????

Related Posts Răspunsuri Vizualizări Activitate
3
apr. 22
17818
2
apr. 19
4267
0
feb. 17
2880
0
ian. 17
2802
1
aug. 25
383