Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] delivery_auto_refresh manually delete delivery line #780

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions delivery_auto_refresh/tests/test_delivery_auto_refresh.py
Original file line number Diff line number Diff line change
@@ -325,3 +325,11 @@ def test_auto_add_delivery_line_add_service(self):
order = order_form.save()
delivery_line = order.order_line.filtered("is_delivery")
self.assertFalse(delivery_line.exists())

def test_auto_refresh_so_and_manually_unlink_delivery_line(self):
"""Test that we are able to manually remove the delivery line"""
self._test_autorefresh_unlink_line()
sale_form = Form(self.order)
# Deleting the delivery line
sale_form.order_line.remove(1)
sale_form.save()
Loading