diff options
| author | Prakash Prajapati <ppr@odoo.com> | 2019-07-01 09:15:55 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-08-01 11:39:51 +0000 |
| commit | 1a33056557be7b5696854d3056ea79204f36eae4 (patch) | |
| tree | 9a6bc539c0f9ddbd3175477af80b7f497be0eeac /addons/mass_mailing_crm | |
| parent | 0c808a082f30fde781d3b5fb1da405eb00409842 (diff) | |
[IMP] various: Clean stat buttons across all modules.
Purpose
=======
Make them consistent.
Make sure context is correctly set.
Prevent creation when necessary.
Specification
=============
See https://www.odoo.com/web#id=2024467&action=333&active_id=1251&model=project.task&view_type=form&menu_id=4720
for the detailed list of all the requested improvements.
TaskID: 2024467
closes odoo/odoo#34561
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/mass_mailing_crm')
| -rw-r--r-- | addons/mass_mailing_crm/models/mailing_mailing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mass_mailing_crm/models/mailing_mailing.py b/addons/mass_mailing_crm/models/mailing_mailing.py index a740a79968c..e4c23086bb4 100644 --- a/addons/mass_mailing_crm/models/mailing_mailing.py +++ b/addons/mass_mailing_crm/models/mailing_mailing.py @@ -34,14 +34,14 @@ class MassMailing(models.Model): def action_redirect_to_leads(self): action = self.env.ref('crm.crm_lead_all_leads').read()[0] action['domain'] = self._get_crm_utm_domain() - action['context'] = {'default_type': 'lead', 'active_test': False} + action['context'] = {'default_type': 'lead', 'active_test': False, 'create': False} return action def action_redirect_to_opportunities(self): action = self.env.ref('crm.crm_lead_opportunities').read()[0] action['view_mode'] = 'tree,kanban,graph,pivot,form,calendar' action['domain'] = self._get_crm_utm_domain() - action['context'] = {'active_test': False} + action['context'] = {'active_test': False, 'create': False} return action def _get_crm_utm_domain(self): |
