Skip to Content
Menu
This question has been flagged
6159 Rodiniai

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?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
liep. 20
4919
3
saus. 20
12619
0
gruod. 23
7986
0
kov. 15
3836
0
kov. 15
3389