|
@ -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") |
|
|
|
|
|
|
|
|