[MERGE] base.action.rule: better handle non-ASCII data
authorOlivier Dony <odo@openerp.com>
Fri, 16 Mar 2012 14:42:51 +0000 (15:42 +0100)
committerOlivier Dony <odo@openerp.com>
Fri, 16 Mar 2012 14:42:51 +0000 (15:42 +0100)
Also fixes the `regex_history` expression
that should search on the `subject` field
now (it was renamed in 6.1).

lp bug: https://launchpad.net/bugs/921442 fixed

bzr revid: odo@openerp.com-20120316144251-ks16hvvfgh2hiduk

1  2 
addons/base_action_rule/base_action_rule.py
addons/crm/crm_action_rule.py

@@@ -24,6 -24,6 +24,7 @@@ from tools.translate import 
  from datetime import datetime
  from datetime import timedelta
  from tools.safe_eval import safe_eval
++from tools import ustr
  import pooler
  import re
  import time
@@@ -23,6 -23,6 +23,7 @@@ import r
  import tools
  
  from tools.translate import _
++from tools import ustr
  from osv import fields
  from osv import osv