add hr_config
							parent
							
								
									9b11951014
								
							
						
					
					
						commit
						754bda171a
					
				|  | @ -52,6 +52,7 @@ def main(): | |||
|             'set_warehouse', | ||||
|             'base_config', | ||||
|             'sale_config', | ||||
|             'hr_config', | ||||
|             'stock_config', | ||||
|             'stock_set_cost_method',             | ||||
|             'set_incoterms', | ||||
|  |  | |||
|  | @ -92,6 +92,14 @@ class Config(): | |||
|             'group_costing_method': True,                # Benutzen Sie 'Einkaufs-' oder 'Durchschnittspreis' zur Bestandsbewertung | ||||
|         } | ||||
|          | ||||
|         #Einstellungen Personal | ||||
|         self.hr_config = { | ||||
|             'module_hr_expense': True,                 # Spesen der Mitarbeiter verwalten | ||||
|             'module_hr_timesheet': False,              # Verwalten Sie Ihre Studenzettel   | ||||
|             'group_hr_attendance': True,               # Zuweisung der Berechtigung  zur Arbeitszeiteingabe für alle Benutzer | ||||
|   | ||||
|         }   | ||||
|          | ||||
|         #Einstellungen Lager | ||||
|         self.stock_config = { | ||||
|             'group_stock_multiple_locations': True,      # Verwalten Sie mehrere Lager und Lagerorte | ||||
|  |  | |||
|  | @ -150,6 +150,16 @@ class CamadeusFunctions(): | |||
|             return self._execute('stock.config.settings', 'execute', [wizard_id])   | ||||
|         return True  | ||||
|      | ||||
|     def hr_config(self): | ||||
|         """Basiskonfiguration für Personal Laden""" | ||||
| 
 | ||||
|         if hasattr(self.config, 'hr_config'): | ||||
|             vals = self._execute('hr.config.settings', 'default_get', [])   | ||||
|             vals.update(self.config.hr_config)            | ||||
|             wizard_id = self._execute('hr.config.settings', 'create', vals) | ||||
|             return self._execute('hr.config.settings', 'execute', [wizard_id])   | ||||
|         return True  | ||||
| 
 | ||||
|     def set_incoterms(self): | ||||
|         """Lieferbedingungen setzen""" | ||||
|          | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue