From b27d1176f8bef9822a79eecff05ae3f214308c38 Mon Sep 17 00:00:00 2001 From: Aktiv Software Date: Mon, 8 Nov 2021 12:52:54 +0000 Subject: [PATCH] [FIX] website_crm_partner_assign: fix template variable usage Fixed error on rendering template of email_template_lead_forward_mail when clicking Forward to partner. Issue is 'dict' object has no attribute 'lead_id'. This was because in Odoo v14, jinja was used and using a dict like properties was ok. With QWeb it crashes and we have to correctly handle the dict. Fixes #79492 Task-2657930 closes odoo/odoo#80259 X-original-commit: 7facd634328ad2038a13f75a3616b753e8fef147 Signed-off-by: Thibault Delavallee (tde) --- addons/website_crm_partner_assign/data/mail_template_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_crm_partner_assign/data/mail_template_data.xml b/addons/website_crm_partner_assign/data/mail_template_data.xml index 758e9ade972..344aa804c6a 100644 --- a/addons/website_crm_partner_assign/data/mail_template_data.xml +++ b/addons/website_crm_partner_assign/data/mail_template_data.xml @@ -37,7 +37,7 @@ Hello,
We have been contacted by those prospects that are in your region. Thus, the following leads have been assigned to :
    -
  1. Subject Undefined, Contact Name Undefined, Country Undefined, Email Undefined, +1 650-123-4567

  2. +
  3. Subject Undefined, Contact Name Undefined, Country Undefined, Email Undefined, +1 650-123-4567

Please connect to your Partner Portal to get details. On each lead are two buttons on the top left corner that you should press after having contacted the lead: "I'm interested" & "I'm not interested".