[FIX] base: add method allowing to call ir.server.action from crons

This commit is contained in:
Christophe Simonis
2016-08-03 12:39:20 +02:00
parent b907c9654f
commit e3ab323e29
+8
View File
@@ -978,6 +978,14 @@ class IrActionsServer(models.Model):
res = func(action, eval_context=eval_context)
return res
@api.model
def _run_actions(self, ids):
"""
Run server actions with given ids.
Allow crons to run specific server actions
"""
return self.browse(ids).run()
class IrServerObjectLines(models.Model):
_name = 'ir.server.object.lines'