Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3008 Widoki

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
kwi 24
24359
2
sty 16
5127
3
lip 25
8665
1
maj 25
969
0
sty 24
1687