Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
10136 Переглядів

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)

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
черв. 24
6330
2
бер. 24
1324
1
груд. 22
9017
1
груд. 22
4287
2
черв. 21
3096