Fix Task search by analytic and location
Fix access error when creating Tasks

Workaround for Odoo Issue #4349
https://github.com/odoo/odoo/issues/4349