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

In v13, I find odoo removed @api.model_cr.

Is there any alternative decorator for @api.model_cr. ?

Imagine profil
Abandonează
Cel mai bun răspuns

Hello,

Now in v13, the code includes all the decorators
@api.model_cr,
@api.cr,
@api.one,
@api.returns,
@api.multi
are multi-record by default.

Thank you.

Imagine profil
Abandonează
Cel mai bun răspuns

It has been deprecated in V13 By the way why/where you need it? 
All the call ORM methods like def init, def register_hook now call without a decorator and if you need db cursor in your method then you can get it from the environment (self.env.cr)

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
iun. 24
6330
2
mar. 24
1324
1
dec. 22
9017
1
dec. 22
4287
2
iun. 21
3096