fix: hide local customer when not applicable, for order view

This commit is contained in:
Lance Edgar 2025-01-13 17:04:24 -06:00
parent 778a34bfab
commit 6d884bccc3

View file

@ -778,6 +778,9 @@ class OrderView(MasterView):
order = f.model_instance
# local_customer
if order.customer_id and not order.local_customer:
f.remove('local_customer')
else:
f.set_node('local_customer', LocalCustomerRef(self.request))
# pending_customer