diff --git a/pyproject.toml b/pyproject.toml index 1c5c7be..15d4539 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Topic :: Office/Business", ] license = {text = "GNU General Public License v3+"} requires-python = ">= 3.8" 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: