mirror of https://github.com/OCA/social.git
Merge pull request #91 from hbrunn/8.0-issue84
[FIX] cope with partner without users, fixes #84pull/96/head
commit
161e80fa5e
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue