summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2015-11-10 13:55:30 +0100
committerRaphael Collet <rco@openerp.com>2015-11-27 14:55:49 +0100
commit328f2afc6b2c0b57e404fdc1dee80fbb6cb660a5 (patch)
tree65c82de28cb5a8c9e30aad39518c19b084bb30a4
parent5790475e254d70868b387d1bdc06275fe83bcad3 (diff)
[FIX] base_action_rule: add missing field in `onchange_kind`
-rw-r--r--addons/base_action_rule/base_action_rule.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base_action_rule/base_action_rule.py b/addons/base_action_rule/base_action_rule.py
index 3bc238b7fa7..eea6d3ec422 100644
--- a/addons/base_action_rule/base_action_rule.py
+++ b/addons/base_action_rule/base_action_rule.py
@@ -104,11 +104,11 @@ class base_action_rule(osv.osv):
def onchange_kind(self, cr, uid, ids, kind, context=None):
clear_fields = []
if kind in ['on_create', 'on_create_or_write', 'on_unlink']:
- clear_fields = ['filter_pre_id', 'trg_date_id', 'trg_date_range', 'trg_date_range_type']
+ clear_fields = ['filter_pre_id', 'filter_pre_domain', 'trg_date_id', 'trg_date_range', 'trg_date_range_type']
elif kind in ['on_write', 'on_create_or_write']:
clear_fields = ['trg_date_id', 'trg_date_range', 'trg_date_range_type']
elif kind == 'on_time':
- clear_fields = ['filter_pre_id']
+ clear_fields = ['filter_pre_id', 'filter_pre_domain']
return {'value': dict.fromkeys(clear_fields, False)}
def onchange_filter_pre_id(self, cr, uid, ids, filter_pre_id, context=None):