diff options
| author | Raphael Collet <rco@openerp.com> | 2013-03-01 14:19:29 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2013-03-01 14:19:29 +0100 |
| commit | f1f15f52b3b37fea23f2dce09ee89fd29cb5d997 (patch) | |
| tree | 00dd5bd362b93f613b51acd8d25195f1d6914ab3 | |
| parent | ed498dac73e5c65afb2627968c38460f9b786de0 (diff) | |
[FIX] base_action_rule: undefined variable (due to code move)
bzr revid: rco@openerp.com-20130301131929-3q4egd9jpasss88w
| -rw-r--r-- | addons/base_action_rule/base_action_rule.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/base_action_rule/base_action_rule.py b/addons/base_action_rule/base_action_rule.py index 176c2bffe28..f759dfd3bbb 100644 --- a/addons/base_action_rule/base_action_rule.py +++ b/addons/base_action_rule/base_action_rule.py @@ -117,6 +117,8 @@ class base_action_rule(osv.osv): def _process(self, cr, uid, action, record_ids, context=None): """ process the given action on the records """ + model = self.pool.get(action.model_id.model) + # modify records values = {} if 'date_action_last' in model._all_columns: @@ -131,7 +133,6 @@ class base_action_rule(osv.osv): model.message_subscribe(cr, uid, record_ids, follower_ids, context=context) # execute server actions - model = self.pool.get(action.model_id.model) if action.server_action_ids: server_action_ids = map(int, action.server_action_ids) for record in model.browse(cr, uid, record_ids, context): |
