跳至内容
菜单
此问题已终结
6032 查看

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?

形象
丢弃
相关帖文 回复 查看 活动
1
7月 20
4808
3
1月 20
12521
0
12月 23
7875
0
3月 15
3794
0
3月 15
3258