[CRM] Migrate to new API

- Task: https://www.odoo.com/web#id=10543&view_type=form&model=project.task&action=333&active_id=248
- Pad: https://pad.odoo.com/p/r.qE00VdREVpboKWJp
use the new api of search_count, why playing with self._cr, self._uid ?