From 0f2f8c562df864ef7c4414e2e5ff37a1b944c272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Fri, 22 Jan 2021 14:20:48 +0000 Subject: [PATCH] [FIX] website_crm_partner_assign: fix opportunities portal page without currency Follow-up of 13a4544707053295565c33580526f6a8a16f556b Where we fixed the portal *list* of opportunities but did not notice that the associated *form* also had the same issue. To recap the issue: When you remove the 'company_id' on a crm.lead, you also remove the computed 'company_currency'. When trying to view this kind of leads in the website_crm_partner_assign portal form page, it would raise an error while trying to display the planned_revenue in the missing currency. Now, we display the number without any currency sign, which is a "best effort" solution, just the same as on the crm.lead form view. So it will look like "9000 at 47%" instead of "$9000 at 47%". Task-2444539 closes odoo/odoo#65199 X-original-commit: c3007ac621d95ee487560a95eeaf925b56c01ab7 Signed-off-by: awa-odoo Signed-off-by: Thibault Delavallee (tde) --- .../views/website_crm_partner_assign_templates.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/website_crm_partner_assign/views/website_crm_partner_assign_templates.xml b/addons/website_crm_partner_assign/views/website_crm_partner_assign_templates.xml index cb5468e5dc5..3285d5dc2e1 100644 --- a/addons/website_crm_partner_assign/views/website_crm_partner_assign_templates.xml +++ b/addons/website_crm_partner_assign/views/website_crm_partner_assign_templates.xml @@ -532,7 +532,9 @@
- at + + + at %