Import the Product.not_for_sale flag from CORE-POS
				
					
				
			This commit is contained in:
		
							parent
							
								
									5ac3a3d82c
								
							
						
					
					
						commit
						67861522eb
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -548,6 +548,7 @@ class ProductImporter(FromCOREPOS, corepos_importing.model.ProductImporter): | |||
|         'food_stampable', | ||||
|         # 'tax1', | ||||
|         'tax_code', | ||||
|         'not_for_sale', | ||||
|     ] | ||||
| 
 | ||||
|     def setup(self): | ||||
|  | @ -627,6 +628,8 @@ class ProductImporter(FromCOREPOS, corepos_importing.model.ProductImporter): | |||
|             'sale_price_starts': None, | ||||
|             'sale_price_ends': None, | ||||
|             'sale_price_current': False, | ||||
| 
 | ||||
|             'not_for_sale': not product.in_use, | ||||
|         } | ||||
| 
 | ||||
|         if 'tax_code' in self.fields: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar