[FIX] base_action_rule: Make sure model exists before trying to wrap hooks
authorSandy Carter <sandy.carter@savoirfairelinux.com>
Thu, 23 Oct 2014 21:45:55 +0000 (17:45 -0400)
committerDenis Ledoux <dle@odoo.com>
Thu, 30 Oct 2014 09:02:04 +0000 (10:02 +0100)
commit1661cf53e9b30dabaa5658906b68b3a1d25599b7
tree042bca8e4e4930146e3faee8b21db10aaca4fbe1
parent2b2ec0743599260d1d3215dd273a6665ab5871d3
[FIX] base_action_rule: 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 <sandy.carter@savoirfairelinux.com>
addons/base_action_rule/base_action_rule.py