diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 74c287f8ae5..278aa163070 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -579,5 +579,11 @@ class account_bank_statement_line(osv.osv): 'type': 'general', } + def copy(self, cr, uid, id, default=None, context=None): + if default is None: + default = {} + default = dict(default, move_ids=[]) + return super(account_bank_statement_line, self).copy( + cr, uid, id, default=default, context=context) # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/crm_claim/test/process/claim.yml b/addons/crm_claim/test/process/claim.yml index f6c6f6d315c..1a68de8ea04 100644 --- a/addons/crm_claim/test/process/claim.yml +++ b/addons/crm_claim/test/process/claim.yml @@ -15,7 +15,7 @@ claim_ids = self.search(cr, uid, [('email_from','=', 'Mr. John Right ')]) assert claim_ids and len(claim_ids), "Claim is not created after getting request" claim = self.browse(cr, uid, claim_ids[0], context=context) - assert claim.name == tools.ustr("demande derèglement de votre produit."), "Subject does not match" + assert claim.name == tools.ustr("demande de règlement de votre produit."), "Subject does not match" - I open customer claim. - diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index c188530a3de..41719bc6efa 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -45,7 +45,9 @@ def decode(text): """Returns unicode() string conversion of the the given encoded smtp header text""" if text: text = decode_header(text.replace('\r', '')) - return ''.join([tools.ustr(x[0], x[1]) for x in text]) + # The joining space will not be needed as of Python 3.3 + # See https://hg.python.org/cpython/rev/8c03fe231877 + return ' '.join([tools.ustr(x[0], x[1]) for x in text]) class MLStripper(HTMLParser): def __init__(self):