Basiskonfiguration für Lager laden
							parent
							
								
									6df07dda9d
								
							
						
					
					
						commit
						96c11e2e7b
					
				|  | @ -70,6 +70,11 @@ class Config(): | |||
|             'group_purchase_pricelist': True,      # Preislisten verwenden | ||||
|         } | ||||
|          | ||||
|         #Einstellungen Lager | ||||
|         self.stock_config = { | ||||
|             'group_stock_multiple_locations': True,      # Verwalten Sie mehrere Läger und Lagerorte | ||||
|         }   | ||||
|          | ||||
|         self.sequences = { | ||||
|             'sale.order':  {  | ||||
|                 'number_next_actual': 2000,  | ||||
|  |  | |||
|  | @ -139,6 +139,15 @@ class CamadeusFunctions(): | |||
|         wizard_id = self._execute('sale.config.settings', 'create', vals) | ||||
|         return self._execute('sale.config.settings', 'execute', [wizard_id]) | ||||
|      | ||||
|     def stock_config(self): | ||||
|         """Basiskonfiguration für Lager laden""" | ||||
| 
 | ||||
|         if hasattr(self.config, 'stock_config'): | ||||
|             vals = self._execute('stock.config.settings', 'default_get', [])   | ||||
|             vals.update(self.config.stock_config)            | ||||
|             wizard_id = self._execute('stock.config.settings', 'create', vals) | ||||
|             return self._execute('stock.config.settings', 'execute', [wizard_id])    | ||||
|      | ||||
|     def base_config(self): | ||||
|         """Allgemeine Konfiguration laden""" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue