Hello,
with this expression:
self.env['sale.order'].read_group([], fields=['partner_id','user_id'], groupby=['partner_id','user_id'])
how can i get the same result of SQL query:
SELECT partner_id,user_id
FROM sale_order
GROUP BY partner_id,user_id
In the first expression Odoo doens't group by "user_id" but only by "partner_id"
Odoo11 community