{"action":"opened","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/6433","labels_url":"https://api.github.com/repos/odoo/odoo/issues/6433/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/6433/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/6433/events","html_url":"https://github.com/odoo/odoo/issues/6433","id":70191015,"number":6433,"title":"[8.0] Impossible to Design Email in Marketing>Mass Mailings","user":{"login":"sergueikp","id":9844780,"avatar_url":"https://avatars.githubusercontent.com/u/9844780?v=3","gravatar_id":"","url":"https://api.github.com/users/sergueikp","html_url":"https://github.com/sergueikp","followers_url":"https://api.github.com/users/sergueikp/followers","following_url":"https://api.github.com/users/sergueikp/following{/other_user}","gists_url":"https://api.github.com/users/sergueikp/gists{/gist_id}","starred_url":"https://api.github.com/users/sergueikp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergueikp/subscriptions","organizations_url":"https://api.github.com/users/sergueikp/orgs","repos_url":"https://api.github.com/users/sergueikp/repos","events_url":"https://api.github.com/users/sergueikp/events{/privacy}","received_events_url":"https://api.github.com/users/sergueikp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-22T17:43:33Z","updated_at":"2015-04-22T17:43:33Z","closed_at":null,"body":"**[8.0] Impossible to attach Email template to a Mass Mailing in Marketing>Mass Mailings**\r\n\r\nImpacted versions:\r\n\r\n - 8.0 (Nightly build odoo-8.0_20150422) on Ubuntu 14.04\r\n\r\nSteps to reproduce:\r\n\r\n 1. Create a new Mass Mailing \r\n 2. select Recipients : Leads/Opportunities\r\n 3. in Mail Body of this new Mass Mailing click on \"Design Email\"\r\n 4. On the page with list of all Email Templates : Click Select under needed template, then Click Save, then Click Back\r\n 5. When you are back on the page of Mass Mailing creation click again on \"Design Email\" and you will see Odoo Server Error\r\n\r\n\r\nCurrent behavior:\r\n\r\n - After selecting an template on the page where are listed all Email Templates Mass Mailing mail body  is empty, there is no Email template attached to the Mass Mailing!  If you click one more time on the button \"Design Email\" you will see this Odoo Server Error:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/http.py\", line 530, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/http.py\", line 567, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/http.py\", line 303, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/http.py\", line 300, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/http.py\", line 796, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/http.py\", line 396, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/addons/web/controllers/main.py\", line 940, in call_button\r\n    action = self._call_kw(model, method, args, {})\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/addons/web/controllers/main.py\", line 928, in _call_kw\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/bitnami/apps/odoo/lib/odoo-8.0_20150422-py2.7.egg/openerp/addons/mass_mailing/models/mass_mailing.py\", line 553, in action_edit_html\r\n    url = '/website_mail/email_designer?model=mail.mass_mailing&res_id=%d&template_model=%s&return_action=%d&enable_editor=1' % (ids[0], mail.mailing_model, context['params']['action'])\r\nKeyError: 'action'\r\n\r\nExpected behavior:\r\n\r\n - You mast have an Email template attached to the Mass Mailing\r\n\r\nBest regards. "}}