summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2020-11-26 14:55:38 +0000
committerThibault Delavallée <tde@odoo.com>2020-12-11 14:00:48 +0000
commit47079f67f586adf45da15fc98dbc81571f7a9100 (patch)
tree310c5b09679696613e73dd2cf0bdd8a4540bbfbf /odoo
parente628defec14f3b36612951bc698fa51b7c9f56bb (diff)
[FIX] web, crm: fix rainbowman when lead is marked as "won"
When you mark an crm.lead as "won" using the "mark as won" button, the user will be shown a rainbowman under certain conditions. This happens notably when you win your first lead. This commit fixes the 'ir.actions.act_window_close' model to allow the 'effect' key within its readable fields (even if it's not a real field) which is in turn picked up by the web client to display the infamous rainbowman. At the same time, we add the tour that is testing the rainbowman of the crm app in the test suite, since it was missing and never actually executed by the CI. Some fixes were also necessary to make the test run properly. Task ID-2394745 closes odoo/odoo#62420 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'odoo')
-rw-r--r--odoo/addons/base/models/ir_actions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/odoo/addons/base/models/ir_actions.py b/odoo/addons/base/models/ir_actions.py
index 2cbd196debf..caba0b44a88 100644
--- a/odoo/addons/base/models/ir_actions.py
+++ b/odoo/addons/base/models/ir_actions.py
@@ -321,6 +321,13 @@ class IrActionsActWindowclose(models.Model):
type = fields.Char(default='ir.actions.act_window_close')
+ def _get_readable_fields(self):
+ return super()._get_readable_fields() | {
+ # 'effect' is not a real field of ir.actions.act_window_close but is
+ # used to display the rainbowman
+ "effect"
+ }
+
class IrActionsActUrl(models.Model):
_name = 'ir.actions.act_url'