[IMP] status of contract on task, issue and sale order

- Task: https://www.odoo.com/web#id=9258&view_type=form&model=project.task&menu_id=3942&action=327
- Pad: https://pad.odoo.com/p/r.6XynUXUW6cac35nF
partner_id and use_issues fields are available on the project; and project always have an analytic_account_id.

You could rewrite if issue.project_id and issue.project_id.partner_id and issue.project_id.use_issues: