In v13, I find odoo removed @api.model_cr.
Is there any alternative decorator for @api.model_cr. ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
In v13, I find odoo removed @api.model_cr.
Is there any alternative decorator for @api.model_cr. ?
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.
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)
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jun 24
|
6258 | ||
|
2
Mar 24
|
342 | ||
|
1
Dec 22
|
7559 | ||
|
1
Dec 22
|
2644 | ||
|
2
Jun 21
|
1828 |