I want to create a base.action.rule object, call at the creation date. But I don't find any filter to stop the action rule after only one call.
How can I stop it or What can I use to do this instead of action.rule?
edit:
In base.action.rule source code I found this :
def _check(self, cr, uid, automatic=False, use_new_cursor=False, context=None):
""" This Function is called by scheduler. """
context = context or {}
# retrieve all the action rules that have a trg_date_id and no precondition
and this :
def _register_hook(self, cr, ids=None):
""" Wrap the methods `create` and `write` of the models specified by
the rules given by `ids` (or all existing rules if `ids` is `None`.)
"""
But register hook is called even if an action as a trigger date attribute? I don't understand this. If someone can explain.
↧