update
						commit
						4165dfcb42
					
				|  | @ -0,0 +1,14 @@ | |||
| [options] | ||||
| 
 | ||||
| xmlrpc_port = 8080 | ||||
| ; This is the password that allows database operations: | ||||
| ; admin_passwd = admin | ||||
| db_host = False | ||||
| db_port = 5436 | ||||
| db_user = False | ||||
| db_password = False | ||||
| 
 | ||||
| addons_path = odoo/addons,ext/addons | ||||
| timezone = Europe/Brussels | ||||
| 
 | ||||
| dbfilter_test = ['.*',] | ||||
|  | @ -77,7 +77,12 @@ def main(): | |||
|             'login', | ||||
|             'update_modules',      | ||||
|         ]   | ||||
|        | ||||
| 
 | ||||
|     if cmd == 'update_all': | ||||
|         methods = [ | ||||
|             'login', | ||||
|             'update_all',         | ||||
|         ]        | ||||
| 
 | ||||
|     if not methods: | ||||
|         _usage() | ||||
|  | @ -93,4 +98,4 @@ def main(): | |||
|     print "\nAbgeschlossen." | ||||
|      | ||||
| if __name__ == "__main__": | ||||
|     main()     | ||||
|     main()     | ||||
|  |  | |||
|  | @ -324,7 +324,7 @@ class CamadeusFunctions(): | |||
|            raise "Module '%s' not found or ist not installed." % module_name | ||||
|         | ||||
|         res = self._execute('ir.module.module', 'button_upgrade', mod_ids)    | ||||
|         res = self._execute('base.module.upgrade', 'upgrade_module', mod_ids) | ||||
|         res = self._execute('base.module.upgrade', 'upgrade_module', []) | ||||
|         return True | ||||
| 
 | ||||
|     def update_modules(self): | ||||
|  | @ -345,4 +345,16 @@ class CamadeusFunctions(): | |||
|         } | ||||
|         if not self._execute('account.journal', 'write', j_ids, vals): | ||||
|             return False    | ||||
|         return True  | ||||
|         return True  | ||||
|      | ||||
|     def update_all(self): | ||||
|         """Aktualisiere Modul""" | ||||
|         for module_name in self.config.modules: | ||||
|             mod_ids = self._execute('ir.module.module', 'search', [('name','=',module_name),('state','=','installed')]) | ||||
|             if not len(mod_ids) == 1: | ||||
|                 raise Exception("Module '%s' not found or ist not installed." % module_name) | ||||
|             res = self._execute('ir.module.module', 'button_upgrade', mod_ids)    | ||||
|              | ||||
|         res = self._execute('base.module.upgrade', 'upgrade_module', []) | ||||
|         return True     | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue