Fix bug for purchase batch
This commit is contained in:
		
							parent
							
								
									a5d1eece71
								
							
						
					
					
						commit
						4ee30feb0f
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -651,7 +651,7 @@ class PurchasingBatchView(BatchMasterView): | ||||||
|             f.set_readonly('upc') |             f.set_readonly('upc') | ||||||
|             f.set_readonly('item_id') |             f.set_readonly('item_id') | ||||||
|             f.set_readonly('product') |             f.set_readonly('product') | ||||||
|             f.set_renderer('product', self.render_product) |             f.set_renderer('product', self.render_row_product) | ||||||
| 
 | 
 | ||||||
|             # TODO: what's up with this again? |             # TODO: what's up with this again? | ||||||
|             # f.remove_fields('po_total', |             # f.remove_fields('po_total', | ||||||
|  | @ -667,7 +667,6 @@ class PurchasingBatchView(BatchMasterView): | ||||||
|             else: |             else: | ||||||
|                 f.remove_field('product') |                 f.remove_field('product') | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|     def render_row_product(self, row, field): |     def render_row_product(self, row, field): | ||||||
|         product = row.product |         product = row.product | ||||||
|         if not product: |         if not product: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar