Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
6023 Tampilan

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?

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jul 20
4805
3
Jan 20
12516
0
Des 23
7871
0
Mar 15
3787
0
Mar 15
3250