Fix view errors after upstream changes

Error found here: https://travis-ci.org/OCA/department/jobs/32045736