Skip to Content
Menu
This question has been flagged
3037 Rodiniai

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
bal. 24
24422
2
saus. 16
5149
3
liep. 25
8744
1
geg. 25
1038
0
saus. 24
1720