Browse Source

[FIX] Problem in sending ticket

pull/7/merge
Thibault Francois 9 years ago
parent
commit
ef439a5795
  1. 2
      beesdoo_pos/models/beesdoo_pos.py

2
beesdoo_pos/models/beesdoo_pos.py

@ -36,7 +36,7 @@ class BeescoopPosOrder(models.Model):
return _('Error: no order found') return _('Error: no order found')
if not order.partner_id.email: if not order.partner_id.email:
return _('Cannot send the ticket, no email address found on the client') return _('Cannot send the ticket, no email address found on the client')
mail_template = self.env.ref("beescoop_pos.email_send_ticket")
mail_template = self.env.ref("beesdoo_pos.email_send_ticket")
mail_template.send_mail(order.id) mail_template.send_mail(order.id)
return _("Ticket sent") return _("Ticket sent")

Loading…
Cancel
Save