Port project_department to v8

Made the minimal changeset to make the module installable + flake8 fixing.
Also moved the Department field placement on Project an Task views.
Should be merged after https://github.com/OCA/department/pull/2.