From 1989495aebcf0a294de3397a4a4dac81bcc0a870 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 10 Sep 2015 11:32:10 +0200 Subject: [PATCH] [FIX] crm_partner_assign: message translation structure Do not generate the messages by putting bits of sentences together. Other languages do not have the same structure (and 'have not' was not translated anyway). --- addons/crm_partner_assign/wizard/crm_channel_interested.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/crm_partner_assign/wizard/crm_channel_interested.py b/addons/crm_partner_assign/wizard/crm_channel_interested.py index 32bbe1f547a..76dc52b30f3 100644 --- a/addons/crm_partner_assign/wizard/crm_channel_interested.py +++ b/addons/crm_partner_assign/wizard/crm_channel_interested.py @@ -31,7 +31,10 @@ class crm_lead_forward_to_partner(osv.TransientModel): values = {} else: stage = 'stage_portal_lead_recycle' - message = _('

I am not interested by this lead. I %scontacted the lead.

') % (not wizard.contacted and 'have not ' or '') + if wizard.contacted: + message = _('

I am not interested by this lead. I contacted the lead.

') + else: + message = _('

I am not interested by this lead. I have not contacted the lead.

') values = {'partner_assigned_id': False} user = self.pool.get('res.users').browse(cr, uid, uid, context=context) partner_ids = self.pool.get('res.partner').search(cr, SUPERUSER_ID, [('id', 'child_of', user.partner_id.commercial_partner_id.id)], context=context)