[IMP] rename model method 'trigger_workflow' into 'step_workflow' (less confusing)

bzr revid: rco@openerp.com-20130213150134-wocd9ey2pubpa3xn
This commit is contained in:
Raphael Collet 2013-02-13 16:01:34 +01:00
parent 5450500002
commit 70bda50f7d
1 changed files with 2 additions and 2 deletions

View File

@ -3924,7 +3924,7 @@ class BaseModel(object):
workflow.trg_delete(uid, self._name, res_id, cr)
return True
def trigger_workflow(self, cr, uid, ids, context=None):
def step_workflow(self, cr, uid, ids, context=None):
"""Reevaluate the workflow instances of the given record IDs."""
from openerp import workflow
for res_id in ids:
@ -4291,7 +4291,7 @@ class BaseModel(object):
todo.append(id)
self.pool.get(object)._store_set_values(cr, user, todo, fields_to_recompute, context)
self.trigger_workflow(cr, user, ids, context=context)
self.step_workflow(cr, user, ids, context=context)
return True
#