Browse Source

[FIX] cope with partner without users, fixes #84

pull/91/head
Holger Brunn 8 years ago
parent
commit
f472086caa
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 2
      mail_notification_email_template/models/mail_notification.py

2
mail_notification_email_template/models/mail_notification.py

@ -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…
Cancel
Save