[IMP]Improved code for groupby when domain is there.
[IMP]Improved code for groupby when domain is there.

--HG--
extra : convert_revision : kch%40tinyerp.com-20110525113949-r0kosu8r1bx1r6nv

MarkusTeufelberger/openerp-web,vnc-biz/openerp-web,splbio/openerp-web,vnc-biz/openerp-web,vnc-biz/openerp-web,gisce/openerp-web,MarkusTeufelberger/openerp-web,vnc-biz/openerp-web,splbio/openerp-web,gisce/openerp-web,gisce/openerp-web,splbio/openerp-web,MarkusTeufelberger/openerp-web