c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #07388
[Bug 629471] Re: Automated Actions with Timing conditions don't seem to fire
I confirm the problem is in base_action_rule,
Right now, how works the scheduler ?
As Daniel says it call _check that override the create and write method, that means action defined in action rule are only trigger when create or write is call on an object
try this
1) Create an Automated Action (Sales > Configuration > Automated Actions > Automated Actions) with Object set to crm.lead, Trigger Date set to Creation Date and Delay After Trigger Date set to 1 minute. Set "Set State To" in the Actions tab to Open.
2) Create a new Lead.
3) Wait for at least one minute.
4) Manually run the 'Check Action Rules' scheduler action (Administration > Configuration > Scheduler > Scheduled Actions) by setting the 'Next Call Date' in the past and saving.
5) Change the sales team for the lead and save
6 ) State Draft => open
Of course this behavior is not the one we expected to fix this bug we should call the method _action
in the method check
But there is some issue, how avoid that the action is launch many time,
what to do if the server crach when the action should be trigger. It's
not a simple Issue
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/629471
Title:
Automated Actions with Timing conditions don't seem to fire
Status in OpenObject Addons Modules:
Confirmed
Bug description:
To reproduce:
1) Create an Automated Action (Sales > Configuration > Automated Actions > Automated Actions) with Object set to crm.lead, Trigger Date set to Creation Date and Delay After Trigger Date set to 1 minute. Set "Set State To" in the Actions tab to Open.
2) Create a new Lead.
3) Wait for at least one minute.
4) Manually run the 'Check Action Rules' scheduler action (Administration > Configuration > Scheduler > Scheduled Actions) by setting the 'Next Call Date' in the past and saving.
Expected result:
The created Lead to be in the Open state.
Actual result:
No change to the created Lead.
If you remove the Trigger Date settings, then the Lead will be set to the Open state as soon as it is created.