summaryrefslogtreecommitdiff
path: root/addons/web/models
diff options
context:
space:
mode:
authorPankaj Kamani <pam@odoo.com>2017-12-06 15:36:12 +0530
committerGéry Debongnie <ged@odoo.com>2018-05-28 11:14:20 +0200
commit1a7815f8b77f429643c30bb2f1e7fc272d8f8e43 (patch)
treef1435c161dfb880a48ad8c430848e170d23e736b /addons/web/models
parentf65528a74e8d3f11cadd8658f5495bba21338199 (diff)
[IMP] web,base_setup: add option to disable special effects
Some people prefer not to be disturbed by any flashy information. In this commit, we add an option to do just that. When the 'show_effect' option is set to false, then the messages that would be displayed by an effect will be displayed in a notification. Task #37712 Co-authored-by: Mohammed Shekha <msh@openerp.com>
Diffstat (limited to 'addons/web/models')
-rw-r--r--addons/web/models/ir_http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/models/ir_http.py b/addons/web/models/ir_http.py
index bbe793812b9..527dfeef0fe 100644
--- a/addons/web/models/ir_http.py
+++ b/addons/web/models/ir_http.py
@@ -39,6 +39,7 @@ class Http(models.AbstractModel):
"user_companies": {'current_company': (user.company_id.id, user.company_id.name), 'allowed_companies': [(comp.id, comp.name) for comp in user.company_ids]} if display_switch_company_menu else False,
"currencies": self.get_currencies(),
"web.base.url": self.env['ir.config_parameter'].sudo().get_param('web.base.url', default=''),
+ "show_effect": True
}
def get_currencies(self):