Skip to Content
मेन्यू
This question has been flagged
2 Replies
10241 Views

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

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

Avatar
Discard
Best Answer

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.

Avatar
Discard
Best Answer

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)

Avatar
Discard
Related Posts Replies Views Activity
2
जून 24
6330
2
मार्च 24
1358
1
दिस॰ 22
9051
1
दिस॰ 22
4357
2
जून 21
3132