Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
6121 Переглядів

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 Відповіді Переглядів Дія
Insert query in odoo 13 Вирішено
1
лип. 20
4888
3
січ. 20
12580
0
груд. 23
7940
0
бер. 15
3819
0
бер. 15
3340