diff --git a/module_auto_update/README.rst b/module_auto_update/README.rst index 640dba7b2..d542d5092 100644 --- a/module_auto_update/README.rst +++ b/module_auto_update/README.rst @@ -63,7 +63,11 @@ the method ``_save_installed_checksums`` can be invoked in a situation where one is sure all modules on disk are installed and up-to-date in the database. -An easy way to invoke this upgrade mechanism is by issuing the following +To invoke the upgrade mechanism, navigate to *Apps* menu and use the +*Auto-Upgrade Modules* button, available only in developer mode. Restarting +the Odoo instance is highly recommended to minify risk of any possible issues. + +Another easy way to invoke this upgrade mechanism is by issuing the following in an Odoo shell session: .. code-block:: python diff --git a/module_auto_update/__init__.py b/module_auto_update/__init__.py index d2ad125af..c5d48b349 100644 --- a/module_auto_update/__init__.py +++ b/module_auto_update/__init__.py @@ -1,4 +1,4 @@ -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). from . import models from .hooks import uninstall_hook diff --git a/module_auto_update/__manifest__.py b/module_auto_update/__manifest__.py index cf53b9f2e..e748bc045 100644 --- a/module_auto_update/__manifest__.py +++ b/module_auto_update/__manifest__.py @@ -1,10 +1,11 @@ # Copyright 2017 LasLabs Inc. -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +# Copyright 2018 Brainbean Apps (https://brainbeanapps.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). { 'name': 'Module Auto Update', 'summary': 'Automatically update Odoo modules', - 'version': '12.0.2.0.4', + 'version': '12.0.2.0.5', 'category': 'Extra Tools', 'website': 'https://github.com/OCA/server-tools', 'author': 'LasLabs, ' @@ -18,5 +19,8 @@ 'depends': [ 'base', ], + 'data': [ + 'views/ir_module_module.xml', + ], 'development_status': 'Production/Stable', } diff --git a/module_auto_update/addon_hash.py b/module_auto_update/addon_hash.py index 6bcbebf5a..d2140af33 100644 --- a/module_auto_update/addon_hash.py +++ b/module_auto_update/addon_hash.py @@ -1,5 +1,5 @@ # Copyright 2018 ACSONE SA/NV. -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). from fnmatch import fnmatch import hashlib diff --git a/module_auto_update/hooks.py b/module_auto_update/hooks.py index 50b2eabf6..08e06ed8f 100644 --- a/module_auto_update/hooks.py +++ b/module_auto_update/hooks.py @@ -1,5 +1,5 @@ # Copyright 2017 LasLabs Inc. -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). from odoo import SUPERUSER_ID, api diff --git a/module_auto_update/models/__init__.py b/module_auto_update/models/__init__.py index e5ee3ea66..99672cfeb 100644 --- a/module_auto_update/models/__init__.py +++ b/module_auto_update/models/__init__.py @@ -1,3 +1,3 @@ -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). from . import module diff --git a/module_auto_update/models/module.py b/module_auto_update/models/module.py index aee072ac6..ac510e6f8 100644 --- a/module_auto_update/models/module.py +++ b/module_auto_update/models/module.py @@ -1,6 +1,6 @@ # Copyright 2017 LasLabs Inc. # Copyright 2018 ACSONE SA/NV. -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import json import logging diff --git a/module_auto_update/readme/USAGE.rst b/module_auto_update/readme/USAGE.rst index 39414ad0f..8b3d386ea 100644 --- a/module_auto_update/readme/USAGE.rst +++ b/module_auto_update/readme/USAGE.rst @@ -10,7 +10,11 @@ the method ``_save_installed_checksums`` can be invoked in a situation where one is sure all modules on disk are installed and up-to-date in the database. -An easy way to invoke this upgrade mechanism is by issuing the following +To invoke the upgrade mechanism, navigate to *Apps* menu and use the +*Auto-Upgrade Modules* button, available only in developer mode. Restarting +the Odoo instance is highly recommended to minify risk of any possible issues. + +Another easy way to invoke this upgrade mechanism is by issuing the following in an Odoo shell session: .. code-block:: python diff --git a/module_auto_update/static/description/index.html b/module_auto_update/static/description/index.html index a6eecf83f..465a13f03 100644 --- a/module_auto_update/static/description/index.html +++ b/module_auto_update/static/description/index.html @@ -410,7 +410,10 @@ This is by design, priviledging safety. Should this be an issue, the method _save_installed_checksums can be invoked in a situation where one is sure all modules on disk are installed and up-to-date in the database.

-

An easy way to invoke this upgrade mechanism is by issuing the following +

To invoke the upgrade mechanism, navigate to Apps menu and use the +Auto-Upgrade Modules button, available only in developer mode. Restarting +the Odoo instance is highly recommended to minify risk of any possible issues.

+

Another easy way to invoke this upgrade mechanism is by issuing the following in an Odoo shell session:

 env['ir.module.module'].upgrade_changed_checksum()
diff --git a/module_auto_update/tests/__init__.py b/module_auto_update/tests/__init__.py
index 82778565d..98ee93c7e 100644
--- a/module_auto_update/tests/__init__.py
+++ b/module_auto_update/tests/__init__.py
@@ -1,4 +1,4 @@
-# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
 
 from . import test_addon_hash
 from . import test_module
diff --git a/module_auto_update/tests/test_addon_hash.py b/module_auto_update/tests/test_addon_hash.py
index 884645168..ffcee3f16 100644
--- a/module_auto_update/tests/test_addon_hash.py
+++ b/module_auto_update/tests/test_addon_hash.py
@@ -1,5 +1,5 @@
 # Copyright 2018 ACSONE SA/NV.
-# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
 
 import os
 import unittest
diff --git a/module_auto_update/tests/test_module.py b/module_auto_update/tests/test_module.py
index f2d9486bf..a3ada72ba 100644
--- a/module_auto_update/tests/test_module.py
+++ b/module_auto_update/tests/test_module.py
@@ -1,6 +1,6 @@
 # Copyright 2017 LasLabs Inc.
 # Copyright 2018 ACSONE SA/NV.
-# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
 
 import os
 import tempfile
diff --git a/module_auto_update/views/ir_module_module.xml b/module_auto_update/views/ir_module_module.xml
new file mode 100644
index 000000000..e7a8ce9f6
--- /dev/null
+++ b/module_auto_update/views/ir_module_module.xml
@@ -0,0 +1,27 @@
+
+
+    
+
+    
+        Auto-Upgrade Modules
+        ir.actions.server
+        
+        code
+        
+            action = model.upgrade_changed_checksum()
+        
+    
+
+    
+
+