跳至內容
選單
此問題已被標幟
2983 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
4月 24
24355
2
1月 16
5125
3
7月 25
8652
1
5月 25
943
0
1月 24
1674