{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/8734","labels_url":"https://api.github.com/repos/odoo/odoo/issues/8734/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/8734/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/8734/events","html_url":"https://github.com/odoo/odoo/issues/8734","id":108494300,"number":8734,"title":"[9.0] mail_massmailing fails with error 'mail.mail' object has no attribute '_ids'","user":{"login":"mmattes","id":10907178,"avatar_url":"https://avatars.githubusercontent.com/u/10907178?v=3","gravatar_id":"","url":"https://api.github.com/users/mmattes","html_url":"https://github.com/mmattes","followers_url":"https://api.github.com/users/mmattes/followers","following_url":"https://api.github.com/users/mmattes/following{/other_user}","gists_url":"https://api.github.com/users/mmattes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmattes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmattes/subscriptions","organizations_url":"https://api.github.com/users/mmattes/orgs","repos_url":"https://api.github.com/users/mmattes/repos","events_url":"https://api.github.com/users/mmattes/events{/privacy}","received_events_url":"https://api.github.com/users/mmattes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-26T20:43:41Z","updated_at":"2015-09-30T06:07:22Z","closed_at":null,"body":"Sending Mass Mails doesnt work currently as the error 'mail.mail' object has no attribute '_ids' occurs. \r\n\r\nHere the content from the odoo-server.log:\r\n\r\n2015-09-26 15:18:14,449 10625 ERROR odoo-live openerp.addons.mail.models.mail_mail: failed sending mail (id: 4) due to 'mail.mail' object has no attribute '_ids'\r\nTraceback (most recent call last):\r\n  File \"/opt/odoo/addons/mail/models/mail_mail.py\", line 216, in send\r\n    email_list.append(mail.send_get_email_dict(partner=partner))\r\n  File \"/opt/odoo/openerp/api.py\", line 221, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/openerp/api.py\", line 538, in new_api\r\n    result = method(self._model, cr, uid, self.ids, *args, **kwargs)\r\n  File \"/opt/odoo/addons/mass_mailing/models/mail_mail.py\", line 92, in send_get_email_dict\r\n    res = super(MailMail, self).send_get_email_dict(cr, uid, ids, partner, context=context)\r\n  File \"/opt/odoo/openerp/api.py\", line 223, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/openerp/api.py\", line 345, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/odoo/addons/mail/models/mail_mail.py\", line 168, in send_get_email_dict\r\n    body = self.send_get_mail_body(partner=partner)\r\n  File \"/opt/odoo/openerp/api.py\", line 221, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/openerp/api.py\", line 538, in new_api\r\n    result = method(self._model, cr, uid, self.ids, *args, **kwargs)\r\n  File \"/opt/odoo/addons/mass_mailing/models/mail_mail.py\", line 69, in send_get_mail_body\r\n    for match in re.findall(URL_REGEX, self.body_html):\r\n  File \"/opt/odoo/openerp/fields.py\", line 806, in __get__\r\n    record.ensure_one()\r\n  File \"/opt/odoo/openerp/models.py\", line 5360, in ensure_one\r\n    if len(self) == 1:\r\n  File \"/opt/odoo/openerp/models.py\", line 5559, in __len__\r\n    return len(self._ids)\r\nAttributeError: 'mail.mail' object has no attribute '_ids'\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/144291419","html_url":"https://github.com/odoo/odoo/issues/8734#issuecomment-144291419","issue_url":"https://api.github.com/repos/odoo/odoo/issues/8734","id":144291419,"user":{"login":"kga-odoo","id":12183876,"avatar_url":"https://avatars.githubusercontent.com/u/12183876?v=3","gravatar_id":"","url":"https://api.github.com/users/kga-odoo","html_url":"https://github.com/kga-odoo","followers_url":"https://api.github.com/users/kga-odoo/followers","following_url":"https://api.github.com/users/kga-odoo/following{/other_user}","gists_url":"https://api.github.com/users/kga-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kga-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kga-odoo/subscriptions","organizations_url":"https://api.github.com/users/kga-odoo/orgs","repos_url":"https://api.github.com/users/kga-odoo/repos","events_url":"https://api.github.com/users/kga-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/kga-odoo/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T06:07:22Z","updated_at":"2015-09-30T06:07:22Z","body":"Agree with @mmattes \r\nit gives error for mass mailing having body.\r\nfor @apr-odoo , There is an issue created for this already in master. \r\nIssue: https://www.odoo.com/web#id=649626&view_type=form&model=project.issue&action=963&active_id=681"}}