[CLEAN] event: linting + removed unnecessary code

- Task: https://www.odoo.com/web#id=10029&view_type=form&model=project.task&action=333&active_id=248
- Pad: https://pad.odoo.com/p/r.R1Ek46InZGqvBzHN