Add MasterView.render_product(), fix edit for pricing batch row
				
					
				
			This commit is contained in:
		
							parent
							
								
									b9da7e1b12
								
							
						
					
					
						commit
						2bd107056c
					
				
					 7 changed files with 30 additions and 35 deletions
				
			
		
							
								
								
									
										8
									
								
								tailbone/views/vendors/catalogs.py
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								tailbone/views/vendors/catalogs.py
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -198,14 +198,6 @@ class VendorCatalogsView(FileBatchMasterView):
 | 
			
		|||
        super(VendorCatalogsView, self).configure_row_form(f)
 | 
			
		||||
        f.set_renderer('product', self.render_product)
 | 
			
		||||
 | 
			
		||||
    def render_product(self, row, field):
 | 
			
		||||
        product = row.product
 | 
			
		||||
        if not product:
 | 
			
		||||
            return ""
 | 
			
		||||
        text = six.text_type(product)
 | 
			
		||||
        url = self.request.route_url('products.view', uuid=product.uuid)
 | 
			
		||||
        return tags.link_to(text, url)
 | 
			
		||||
 | 
			
		||||
    def template_kwargs_create(self, **kwargs):
 | 
			
		||||
        parsers = self.get_parsers()
 | 
			
		||||
        for parser in parsers:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue