fix: hide local customer when not applicable, for order view
This commit is contained in:
		
							parent
							
								
									778a34bfab
								
							
						
					
					
						commit
						6d884bccc3
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue