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

Hello,

I make a function A decorated with @api.one and then i call this function inside function B decorated @api.model but i got empty list.

Is possible to do like that?

If i call function A inside function with same decorator i got list with the values (not empty). My collagues says that the function decorated with @api.model doesn't contain ID.

My question is how to pass the ID of the current model to make function decorated with @api.one works when executed from function decorated with @api.model?

Thank you.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
квіт. 24
24363
2
січ. 16
5127
3
лип. 25
8667
1
трав. 25
970
0
січ. 24
1688