Browse Source

[IMP] apply permissions to install module

Gogs 6 years ago
parent
commit
662554226e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      api/utils/odoo_api.py

+ 4 - 1
api/utils/odoo_api.py

@@ -245,7 +245,10 @@ def install_module(system_name=None, module_name=None):
     if os.path.exists(git_data_path):
         execute(['rm', '-Rf', git_data_path])
 
-    # 6. start system container
+    # 6. apply permissions
+    execute(['chmod', '-Rf', '777', module_path])
+
+    # 7. start system container
     started = start_container(system_name)
 
     if not started: