[project] Code cleaning & migration to new API

- Task: https://www.odoo.com/web/#id=8847&view_type=form&model=project.task&action=333&active_id=131
- Pad: https://pad.odoo.com/p/r.kZxs1A0VXfYsHCv2
alias_ids and analytic_account_to_delete is not retrun record set it is retrun list of object.
os unlink record one by one.