Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3029 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 24
24376
2
thg 1 16
5145
3
thg 7 25
8714
1
thg 5 25
1018
0
thg 1 24
1705