Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3135 Visninger

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.

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
apr. 24
24627
2
jan. 16
5287
3
jul. 25
8930
1
maj 25
1183
0
jan. 24
1858