Merge pull request #91 from hbrunn/8.0-issue84

[FIX] cope with partner without users, fixes #84
pull/96/head
Pedro M. Baeza 2016-09-27 20:11:40 +02:00 committed by GitHub
commit 161e80fa5e
1 changed files with 1 additions and 1 deletions

View File

@ -65,5 +65,5 @@ class MailNotification(models.Model):
}),
this.partner_id
)
for a in etree.HTML(link_html).xpath('//a[@href]'):
for a in etree.HTML(link_html or '<html/>').xpath('//a[@href]'):
this.record_access_link = a.get('href')