odoo/odoo — pull request #4341 by yvaucher (2014-12-19 09:54:25+00:00)
Title: Add missing context check

Without this check it will fail if context is not passed.

See https://github.com/OCA/hr/pull/50/files#r21771498