Expose pack_size for delproduct batch
				
					
				
			This commit is contained in:
		
							parent
							
								
									8eee4a1cf0
								
							
						
					
					
						commit
						4addedef6e
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		|  | @ -64,6 +64,7 @@ class DeleteProductBatchView(BatchMasterView): | |||
|         'brand_name', | ||||
|         'description', | ||||
|         'size', | ||||
|         'pack_size', | ||||
|         'department_name', | ||||
|         'subdepartment_name', | ||||
|         'present_in_scale', | ||||
|  | @ -78,6 +79,7 @@ class DeleteProductBatchView(BatchMasterView): | |||
|         'brand_name', | ||||
|         'description', | ||||
|         'size', | ||||
|         'pack_size', | ||||
|         'department_number', | ||||
|         'department_name', | ||||
|         'subdepartment_number', | ||||
|  | @ -105,6 +107,12 @@ class DeleteProductBatchView(BatchMasterView): | |||
|                                row.STATUS_PENDING_CUSTOMER_ORDERS): | ||||
|             return 'notice' | ||||
| 
 | ||||
|     def configure_row_grid(self, g): | ||||
|         super(DeleteProductBatchView, self).configure_row_grid(g) | ||||
| 
 | ||||
|         # pack_size | ||||
|         g.set_type('pack_size', 'quantity') | ||||
| 
 | ||||
|     def configure_row_form(self, f): | ||||
|         super(DeleteProductBatchView, self).configure_row_form(f) | ||||
|         row = f.model_instance | ||||
|  | @ -112,6 +120,9 @@ class DeleteProductBatchView(BatchMasterView): | |||
|         # upc | ||||
|         f.set_renderer('upc', self.render_upc) | ||||
| 
 | ||||
|         # pack_size | ||||
|         f.set_type('pack_size', 'quantity') | ||||
| 
 | ||||
| 
 | ||||
| def includeme(config): | ||||
|     DeleteProductBatchView.defaults(config) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar