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

How can i access field values in another server using odoo 10 xml rpc other than just ids only? I want to access certain field value like name to manipulate it to be use for conditions in a method or function. Thank you very much in advance. 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Once you get the is of the record, use read method to read the data from the record.

See this sample:

sol = models.execute_kw(db, uid, password,'sale.order.line', 'read', [pro], {'fields': ['product_id']})


To know more, see: https://www.youtube.com/watch?v=isjhwKAL63M

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 22
2300
0
thg 6 17
2690
1
thg 1 24
2959
3
thg 10 23
5672
1
thg 7 23
3153