diff --git a/src/sideshow/web/views/orders.py b/src/sideshow/web/views/orders.py index a48546e..68ad984 100644 --- a/src/sideshow/web/views/orders.py +++ b/src/sideshow/web/views/orders.py @@ -778,7 +778,10 @@ class OrderView(MasterView): order = f.model_instance # local_customer - f.set_node('local_customer', LocalCustomerRef(self.request)) + if order.customer_id and not order.local_customer: + f.remove('local_customer') + else: + f.set_node('local_customer', LocalCustomerRef(self.request)) # pending_customer if order.customer_id or order.local_customer: