diff options
| -rw-r--r-- | addons/base_action_rule/base_action_rule.py | 4 | ||||
| -rw-r--r-- | addons/base_action_rule/base_action_rule_data.xml | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/addons/base_action_rule/base_action_rule.py b/addons/base_action_rule/base_action_rule.py index a6793e9bac5..1b80f9f36c3 100644 --- a/addons/base_action_rule/base_action_rule.py +++ b/addons/base_action_rule/base_action_rule.py @@ -280,3 +280,7 @@ class base_action_rule(osv.osv): _logger.error(traceback.format_exc()) action.write({'last_run': now.strftime(DEFAULT_SERVER_DATETIME_FORMAT)}) + + if automatic: + # auto-commit for batch processing + cr.commit() diff --git a/addons/base_action_rule/base_action_rule_data.xml b/addons/base_action_rule/base_action_rule_data.xml index 7a9aabedf5f..d4b12f5d4a3 100644 --- a/addons/base_action_rule/base_action_rule_data.xml +++ b/addons/base_action_rule/base_action_rule_data.xml @@ -10,7 +10,7 @@ <field eval="False" name="doall"/> <field eval="'base.action.rule'" name="model"/> <field eval="'_check'" name="function"/> - <field eval="'()'" name="args"/> + <field eval="'(True,)'" name="args"/> </record> </data> |
