Browse Source

Merge pull request #91 from hbrunn/8.0-issue84

[FIX] cope with partner without users, fixes #84
pull/96/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
161e80fa5e
  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 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') this.record_access_link = a.get('href')
Loading…
Cancel
Save