Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3065 มุมมอง

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 ตอบกลับ มุมมอง กิจกรรม
when to use new api decorators?????? แก้ไขแล้ว
2
เม.ย. 24
24497
2
ม.ค. 16
5174
3
ก.ค. 25
8766
1
พ.ค. 25
1066
0
ม.ค. 24
1764