Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove send_confirmation_email

oldPadavan91286eb5eb52
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.py
index 68fdfb04de..89bbab752d 100644
--- a/saleor/dashboard/order/forms.py
+++ b/saleor/dashboard/order/forms.py
@@ -253,10 +253,6 @@ class OrderNoteForm(forms.ModelForm):
'content': forms.Textarea()}
labels = {'content': pgettext_lazy('Order note', 'Note')}
- def send_confirmation_email(self):
- if self.instance.order.get_user_current_email():
- send_note_confirmation.delay(self.instance.order.pk)
-
class ManagePaymentForm(forms.Form):
amount = MoneyField(
diff --git a/tests/dashboard/test_order.py b/tests/dashboard/test_order.py
index 180a436bda..e95afa8565 100644
--- a/tests/dashboard/test_order.py
+++ b/tests/dashboard/test_order.py
@@ -639,16 +639,6 @@ def test_view_add_variant_to_order(admin_client, order_with_lines):
assert line.quantity == line_quantity_before + added_quantity
-def test_note_form_sent_email(monkeypatch, order_with_lines):
- mock_send_mail = Mock(return_value=None)
- monkeypatch.setattr(
- 'saleor.dashboard.order.forms.send_note_confirmation', mock_send_mail)
- note = OrderNote(order=order_with_lines, user=order_with_lines.user)
- form = OrderNoteForm({'content': 'test_note'}, instance=note)
- form.send_confirmation_email()
- assert mock_send_mail.called_once()
-
-
def test_fulfill_order_line(order_with_lines):
order = order_with_lines
line = order.lines.first()