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

def _sel_func(self, cr, uid, context=None): obj = self.pool.get('stock.location') ids = obj.search(cr, uid, []) res = obj.read(cr, uid, ids, ['id','name'], context) res = [(r['id'],r['name']) for r in res] return res

Currently I'm using this code but what if two or more tables are needed to get the desired field. How can I do that using a sql query or any other approach?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 20
4889
3
thg 1 20
12583
0
thg 12 23
7955
0
thg 3 15
3822
0
thg 3 15
3364