From 0b3a72d3cf1b5313490c58303ad005e3e7ab3c3d Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Fri, 25 Dec 2020 18:13:36 +0530 Subject: [PATCH] add debranding on database manager page --- odoo-debranding/views/database_manager.html | 421 ++++++++++++++++++++ 1 file changed, 421 insertions(+) create mode 100755 odoo-debranding/views/database_manager.html diff --git a/odoo-debranding/views/database_manager.html b/odoo-debranding/views/database_manager.html new file mode 100755 index 0000000..7bb475d --- /dev/null +++ b/odoo-debranding/views/database_manager.html @@ -0,0 +1,421 @@ + + + + + Odoo + + + + + + + + + + + + + + + + + + + + + + + + + + {% macro master_input(set_master_pwd=False) -%} + + {% set input_class = "form-control" %} + {% if insecure %} + {% if set_master_pwd %} + + {% else %} +
+

Warning, your Odoo database manager is not protected. To secure it, we have generated the following master password for it:

+

+

You can change it below but be sure to remember it, it will be asked for future operations on databases.

+
+ {% set input_class = "form-control generated_master_pwd_input" %} + {% endif %} + {% endif %} + {% if not insecure or not set_master_pwd %} +
+ +
+ +
+ +
+
+
+ {% endif %} + {%- endmacro %} + + {% macro create_form() -%} + {{ master_input() }} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ {%- endmacro %} + + +
+ +
+
+ + {% if not list_db %} +
The database manager has been disabled by the administrator
+ {% elif insecure and databases %} +
+ Warning, your Odoo database manager is not protected.
+ Please set a master password to secure it. +
+ {% endif %} + {% if error %} +
{{ error }}
+ {% endif %} + {% if list_db and databases %} +
+ {% for db in databases %} +
+ + {% if db in incompatible_databases %} + + {% endif %} + {{ db }} + + {% if manage %} +
+ + + +
+ {% endif %} +
+ {% endfor %} +
+ {% if manage %} +
+ + + +
+ {% else %} + + {% endif %} + {% elif list_db %} +
+ {{ create_form() }} + +
+ or restore a database + {% endif %} +
+
+
+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file