Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5914 Представления

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?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июл. 20
4717
3
янв. 20
12420
0
дек. 23
7769
0
мар. 15
3702
0
мар. 15
3146