diff options
| author | Aurélien Warnon <awa@odoo.com> | 2021-01-22 14:20:48 +0000 |
|---|---|---|
| committer | Aurélien Warnon <awa@odoo.com> | 2021-01-27 14:41:57 +0000 |
| commit | c3007ac621d95ee487560a95eeaf925b56c01ab7 (patch) | |
| tree | 7291a6b4557f0ca18d2a232c9430fe575610f47c /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 4212f84da83257419d6d98038220ce1dc322fb04 (diff) | |
[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#65141
X-original-commit: 2fe4d3e79958aca99eb3a8f110972fa25ee4a1c3
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
