From a3fe51e16438f274571478626fde433053fa4735 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Fri, 3 Sep 2010 12:14:55 +0100 Subject: [PATCH] Make 'Maximum Communication History' actually be a maximum. bzr revid: daniel.watkins@credativ.co.uk-20100903111455-52oi01hlfj0wewzg --- addons/crm/crm_action_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/crm_action_rule.py b/addons/crm/crm_action_rule.py index 1ca37a426a2..6805131155a 100644 --- a/addons/crm/crm_action_rule.py +++ b/addons/crm/crm_action_rule.py @@ -96,7 +96,7 @@ this if you want the rule to send an email to the partner."), res_count = True if action.trg_max_history: res_count = False - if len(obj.message_ids) >= action.trg_max_history: + if len(obj.message_ids) <= action.trg_max_history: res_count = True ok = ok and res_count return ok