diff --git a/odoo-debrand/README.rst b/odoo-debrand/README.rst index 3195a79ef..7924cb426 100644 --- a/odoo-debrand/README.rst +++ b/odoo-debrand/README.rst @@ -1,6 +1,6 @@ -.. image:: https://img.shields.io/badge/licence-GPL--3-blue.svg - :target: http://www.gnu.org/licenses/gpl-3.0-standalone.html - :alt: License: GPL-3 +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 =============== Odoo Debranding @@ -8,6 +8,7 @@ Odoo Debranding Debranding of odoo with the given configurations under Website Admin -> Debranding Configurations. Will replace: + - Page Title - Odoo from Popups - Settings Odoo branding Items @@ -18,39 +19,39 @@ Will replace: - Odoo Database Selector Logo, Labels - Copyright @odoo with your company on website page - - - Installation ============ +- www.odoo.com/documentation/12.0/setup/install.html +- Install our custom addon -To install this module from odoo apps after updating the app list. - - -Usage -===== +Company +------- +* `Cybrosys Techno Solutions `__ -Fill the configuration under Website Admin. Clear Browser Image caches after installing the module. +Credits +------- +* Developer: + V12 Tintuk Tomin -Known issues / Roadmap -====================== - -* ... +Contacts +-------- +* Mail Contact : odoo@cybrosys.com Bug Tracker -=========== - -Contact odoo@cybrosys.com +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com -Contributors ------------- +This module is maintained by Cybrosys Technologies. -* Tintuk Tomin +For support and more information, please visit `Our Website `__ -Maintainer ----------- +Further information +=================== +HTML Description: ``__ -This module is maintained by Cybrosys Technologies. -For support and more information, please visit https://www.cybrosys.com. diff --git a/odoo-debrand/__init__.py b/odoo-debrand/__init__.py index aa4d0fd63..bcf705a3c 100644 --- a/odoo-debrand/__init__.py +++ b/odoo-debrand/__init__.py @@ -1,4 +1,24 @@ # -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# from . import controllers from . import models diff --git a/odoo-debrand/__manifest__.py b/odoo-debrand/__manifest__.py index 820bb63ba..47ee30800 100644 --- a/odoo-debrand/__manifest__.py +++ b/odoo-debrand/__manifest__.py @@ -1,30 +1,33 @@ # -*- coding: utf-8 -*- -############################################################################## +############################################################################# # # Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author:Tintuk Tomin -# you can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. - +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################## +############################################################################# { 'name': "Odoo Debranding", - 'version': "12.0.1.0.1", + 'version': "12.0.1.1.1", 'summary': """Debrand Odoo""", - 'description': """Debrand Odoo""", + 'description': """Debrand Odoo,Debranding""", 'author': "Cybrosys Techno Solutions", 'company': "Cybrosys Techno Solutions", + 'maintainer': "Cybrosys Techno Solutions", 'website': "https://cybrosys.com/", 'category': 'Tools', 'depends': ['base', 'im_livechat', 'website'], @@ -34,7 +37,7 @@ 'demo': [], 'qweb': ["static/src/xml/base.xml"], 'images': ['static/description/debranding_1.gif'], - 'license': "LGPL-3", + 'license': "AGPL-3", 'installable': True, 'application': False } diff --git a/odoo-debrand/controllers/__init__.py b/odoo-debrand/controllers/__init__.py index 457bae27e..8a47105f1 100644 --- a/odoo-debrand/controllers/__init__.py +++ b/odoo-debrand/controllers/__init__.py @@ -1,3 +1,23 @@ # -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# from . import controllers \ No newline at end of file diff --git a/odoo-debrand/controllers/controllers.py b/odoo-debrand/controllers/controllers.py index 703e21dbd..3ca08f79d 100644 --- a/odoo-debrand/controllers/controllers.py +++ b/odoo-debrand/controllers/controllers.py @@ -1,4 +1,24 @@ # -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# import imghdr import json @@ -86,7 +106,9 @@ class BinaryCustom(Binary): class OdooDebrand(Database): + def _render_template(self, **d): + d.setdefault('manage', True) d['insecure'] = odoo.tools.config.verify_admin_password('admin') d['list_db'] = odoo.tools.config['list_db'] @@ -95,6 +117,7 @@ class OdooDebrand(Database): d['pattern'] = DBNAME_PATTERN website_id = request.env['website'].sudo().search([]) d['website_name'] = website_id and website_id[0].name or '' + d['company_name'] = website_id and website_id[0].company_id.name or '' d['favicon']= website_id and website_id[0].favicon_url or '' d['company_logo_url'] = website_id and website_id[0].company_logo_url or '' diff --git a/odoo-debrand/doc/changelog.md b/odoo-debrand/doc/changelog.md new file mode 100644 index 000000000..71b3c5c97 --- /dev/null +++ b/odoo-debrand/doc/changelog.md @@ -0,0 +1,16 @@ +## Module + +#### 01.01.2019 +#### Version 12.0.1.0.0 +#### ADD +Initial Commit for odoo-debrand + +#### 10.02.2019 +#### Version 12.0.1.0.1 +#### FIX +Bug Fixed, Issue in New Db Creation + +#### 25.09.2019 +#### Version 12.0.1.1.1 +#### FIX +Bug Fixed, Icon in database manager. diff --git a/odoo-debrand/doc/changelog.rst b/odoo-debrand/doc/changelog.rst deleted file mode 100644 index 6e041335a..000000000 --- a/odoo-debrand/doc/changelog.rst +++ /dev/null @@ -1,10 +0,0 @@ -Changelog -========= - -`12.0.1.0.0` ------------- -- Initial commit - -`12.0.1.0.1` ------------- -- [Fix] Issue in New Db Creation \ No newline at end of file diff --git a/odoo-debrand/models/__init__.py b/odoo-debrand/models/__init__.py index cde864bae..1a621529e 100644 --- a/odoo-debrand/models/__init__.py +++ b/odoo-debrand/models/__init__.py @@ -1,3 +1,23 @@ # -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# from . import models diff --git a/odoo-debrand/models/models.py b/odoo-debrand/models/models.py index 105497d12..444d3a66f 100644 --- a/odoo-debrand/models/models.py +++ b/odoo-debrand/models/models.py @@ -1,4 +1,24 @@ # -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# import base64 import os diff --git a/odoo-debrand/views/database_manager_extend.html b/odoo-debrand/views/database_manager_extend.html index 958ab407e..ccbc5c992 100644 --- a/odoo-debrand/views/database_manager_extend.html +++ b/odoo-debrand/views/database_manager_extend.html @@ -126,12 +126,13 @@
- + + {% if not list_db %}
The database manager has been disabled by the administrator
{% elif insecure and databases %}
- Warning, your database manager is not protected.
+ Warning, {{ company_name }} database manager is not protected.
Please set a master password to secure it.
{% endif %}