odoo/odoo — pull request #3275 by bwrsandman (2014-10-23 21:47:19+00:00)
Title: Make sure model exists before trying to wrap hooks

In certain cases, before running an update unregistered models will try to
register hooks. Trying to wrap create and write on these will cause
AttributeError on model_obj which would be None

Signed-off-by: Sandy Carter