Guys, I'm a newbie, still learning and quiet often I have a dilemma how should I do this or that :)
So if would you like to explain and enlighten it a bit for me please.
For example:
<pre>
cr.execute("""SELECT sum(qty) from stock_quant where location_id = %s""" % obj.id)
tot_qty = cr.fetchall()
and ...
how to do the same using old API ?
self.pool.get(stock.quant)..search(cr, uid, [('usage', '=', 'production')], context=context)
like that ?
and how should it look like in new API ?
</pre>