diff --git a/odoo-debrand/README.rst b/odoo-debrand/README.rst deleted file mode 100644 index 55e76fc40..000000000 --- a/odoo-debrand/README.rst +++ /dev/null @@ -1,56 +0,0 @@ -.. 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 - -=============== -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 - - User Drop down Odoo links - - Website Title, footer - - Powered By Odoo on Backend by your company name - - Odoo label from Dialogues - - Odoo Database Selector Logo, Labels - - Copyright @odoo with your company on website page - - - - -Installation -============ - -To install this module from odoo apps after updating the app list. - - -Usage -===== - -Fill the configuration under Website Admin. Clear Browser Image caches after installing the module. - -Known issues / Roadmap -====================== - -* ... - -Bug Tracker -=========== - -Contact odoo@cybrosys.com - - -Contributors ------------- - -* Hilar AK - -Maintainer ----------- - -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 deleted file mode 100644 index 9e5827f90..000000000 --- a/odoo-debrand/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- -from . import controllers -from . import models diff --git a/odoo-debrand/__manifest__.py b/odoo-debrand/__manifest__.py deleted file mode 100644 index 5989dcbdc..000000000 --- a/odoo-debrand/__manifest__.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Hilar AK() -# you can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL 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. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. -# If not, see . -# -############################################################################## -{ - 'name': "Odoo Debranding", - 'version': "10.0.3.0", - 'summary': """Debrand Odoo""", - 'description': """Debrand Odoo""", - 'author': "Cybrosys Techno Solutions", - 'company': "Cybrosys Techno Solutions", - 'website': "https://cybrosys.com/", - 'category': 'Tools', - 'depends': ['base', 'im_livechat', 'website'], - 'data': [ - 'views/views.xml'], - 'demo': [], - 'qweb': ["static/src/xml/*.xml"], - 'images': ['static/description/banner.jpg'], - 'license': "LGPL-3", - 'installable': True, - 'application': False -} diff --git a/odoo-debrand/controllers/__init__.py b/odoo-debrand/controllers/__init__.py deleted file mode 100644 index 457bae27e..000000000 --- a/odoo-debrand/controllers/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import controllers \ No newline at end of file diff --git a/odoo-debrand/controllers/controllers.py b/odoo-debrand/controllers/controllers.py deleted file mode 100644 index 3d2b04158..000000000 --- a/odoo-debrand/controllers/controllers.py +++ /dev/null @@ -1,98 +0,0 @@ -# -*- coding: utf-8 -*- -import imghdr -import json -import functools -from odoo import http, tools -import odoo, os, sys, jinja2 -from odoo.addons.web.controllers.main import Database -from odoo.addons.web.controllers import main -from odoo.addons.web.controllers.main import Binary -from odoo.modules import get_resource_path -from cStringIO import StringIO -from odoo.http import request - -if hasattr(sys, 'frozen'): - # When running on compiled windows binary, we don't have access to package loader. - path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'views')) - loader = jinja2.FileSystemLoader(path) -else: - loader = jinja2.PackageLoader('odoo.addons.odoo-debrand', "views") -env = main.jinja2.Environment(loader=loader, autoescape=True) -env.filters["json"] = json.dumps -db_monodb = http.db_monodb - - -class BinaryCustom(Binary): - @http.route([ - '/web/binary/company_logo', - '/logo', - '/logo.png', - ], type='http', auth="none") - def company_logo(self, dbname=None, **kw): - imgname = 'logo' - imgext = '.png' - company_logo = request.env['website'].sudo().search([])[0].company_logo - custom_logo = tools.image_resize_image(company_logo, (150, None)) - placeholder = functools.partial(get_resource_path, 'web', 'static', 'src', 'img') - uid = None - if request.session.db: - dbname = request.session.db - uid = request.session.uid - elif dbname is None: - dbname = db_monodb() - - if not uid: - uid = odoo.SUPERUSER_ID - - if not dbname: - response = http.send_file(placeholder(imgname + imgext)) - else: - try: - # create an empty registry - registry = odoo.modules.registry.Registry(dbname) - if custom_logo: - image_base64 = custom_logo.decode('base64') - image_data = StringIO(image_base64) - imgext = '.' + (imghdr.what(None, h=image_base64) or 'png') - response = http.send_file(image_data, filename=imgname + imgext, mtime=None) - else: - with registry.cursor() as cr: - cr.execute("""SELECT c.logo_web, c.write_date - FROM res_users u - LEFT JOIN res_company c - ON c.id = u.company_id - WHERE u.id = %s - """, (uid,)) - row = cr.fetchone() - if row and row[0]: - image_base64 = str(row[0]).decode('base64') - image_data = StringIO(image_base64) - imgext = '.' + (imghdr.what(None, h=image_base64) or 'png') - response = http.send_file(image_data, filename=imgname + imgext, mtime=row[1]) - else: - response = http.send_file(placeholder('nologo.png')) - except Exception: - response = http.send_file(placeholder(imgname + imgext)) - return response - - -class OdooDebrand(Database): - def _render_template(self, **d): - d.setdefault('manage', True) - d['insecure'] = odoo.tools.config['admin_passwd'] == 'admin' - d['list_db'] = odoo.tools.config['list_db'] - d['langs'] = odoo.service.db.exp_list_lang() - d['countries'] = odoo.service.db.exp_list_countries() - website_id = request.env['website'].sudo().search([]) - d['company_name'] = website_id and website_id[0].company_name - d['favicon_url'] = website_id and website_id[0].favicon_url or '' - d['company_logo_url'] = website_id and website_id[0].company_logo_url or '' - # databases list - d['databases'] = [] - try: - d['databases'] = http.db_list() - except odoo.exceptions.AccessDenied: - monodb = db_monodb() - if monodb: - d['databases'] = [monodb] - return env.get_template("database_manager_extend.html").render(d) diff --git a/odoo-debrand/doc/changelog.rst b/odoo-debrand/doc/changelog.rst deleted file mode 100644 index 90b9df558..000000000 --- a/odoo-debrand/doc/changelog.rst +++ /dev/null @@ -1,7 +0,0 @@ -Changelog -========= - -`10.0.2.0.0` ------------- -- Fixed Crash Issue on Un-installing. - diff --git a/odoo-debrand/models/__init__.py b/odoo-debrand/models/__init__.py deleted file mode 100644 index 77bbdbd39..000000000 --- a/odoo-debrand/models/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import models - diff --git a/odoo-debrand/models/models.py b/odoo-debrand/models/models.py deleted file mode 100644 index 87af29e9a..000000000 --- a/odoo-debrand/models/models.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- - - -from odoo import models, fields, api - - -class OdooDebrand(models.Model): - _inherit = 'website' - - @api.one - @api.depends('company_favicon') - def get_favicon(self): - self.favicon_url = 'data:image/png;base64,' + str(self.company_favicon) - - @api.one - @api.depends('company_logo') - def get_company_logo(self): - self.company_logo_url = 'data:image/png;base64,' + str(self.company_logo) - - company_logo = fields.Binary("Logo", attachment=True, - help="This field holds the image used for the Company Logo") - company_name = fields.Char("Company Name", help="Branding Name") - company_favicon = fields.Binary("Favicon", attachment=True, - help="This field holds the image used for as favicon") - company_website = fields.Char("Company URL") - favicon_url = fields.Char("Url", compute='get_favicon') - company_logo_url = fields.Char("Url", compute='get_company_logo') - - -class WebsiteConfig(models.TransientModel): - _inherit = 'website.config.settings' - - company_logo = fields.Binary(related='website_id.company_logo', string="Company Logo", - help="This field holds the image used for the Company Logo") - company_name = fields.Char(related='website_id.company_name', string="Company Name") - company_favicon = fields.Binary(related='website_id.company_favicon', string="Company Favicon", - help="This field holds the image used for as favicon") - company_website = fields.Char(related='website_id.company_website') diff --git a/odoo-debrand/security/ir.model.access.csv b/odoo-debrand/security/ir.model.access.csv deleted file mode 100644 index c42b07654..000000000 --- a/odoo-debrand/security/ir.model.access.csv +++ /dev/null @@ -1,2 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_odoo-debrand_odoo-debrand,odoo-debrand.odoo-debrand,model_odoo-debrand_odoo-debrand,,1,0,0,0 \ No newline at end of file diff --git a/odoo-debrand/static/description/banner.jpg b/odoo-debrand/static/description/banner.jpg deleted file mode 100644 index 0db7eaadd..000000000 Binary files a/odoo-debrand/static/description/banner.jpg and /dev/null differ diff --git a/odoo-debrand/static/description/cybro_logo.png b/odoo-debrand/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/odoo-debrand/static/description/cybro_logo.png and /dev/null differ diff --git a/odoo-debrand/static/description/cybrosys-debranding-1.png b/odoo-debrand/static/description/cybrosys-debranding-1.png deleted file mode 100644 index 2e2c3424d..000000000 Binary files a/odoo-debrand/static/description/cybrosys-debranding-1.png and /dev/null differ diff --git a/odoo-debrand/static/description/cybrosys-debranding-2.png b/odoo-debrand/static/description/cybrosys-debranding-2.png deleted file mode 100644 index 5cd874dfa..000000000 Binary files a/odoo-debrand/static/description/cybrosys-debranding-2.png and /dev/null differ diff --git a/odoo-debrand/static/description/cybrosys-debranding-3.png b/odoo-debrand/static/description/cybrosys-debranding-3.png deleted file mode 100644 index 6c61f1ffe..000000000 Binary files a/odoo-debrand/static/description/cybrosys-debranding-3.png and /dev/null differ diff --git a/odoo-debrand/static/description/cybrosys-debranding-4.png b/odoo-debrand/static/description/cybrosys-debranding-4.png deleted file mode 100644 index 68b3149fc..000000000 Binary files a/odoo-debrand/static/description/cybrosys-debranding-4.png and /dev/null differ diff --git a/odoo-debrand/static/description/cybrosys-debranding-5.png b/odoo-debrand/static/description/cybrosys-debranding-5.png deleted file mode 100644 index 6d7ec1fdf..000000000 Binary files a/odoo-debrand/static/description/cybrosys-debranding-5.png and /dev/null differ diff --git a/odoo-debrand/static/description/cybrosys-debranding-6.png b/odoo-debrand/static/description/cybrosys-debranding-6.png deleted file mode 100644 index 8056d168e..000000000 Binary files a/odoo-debrand/static/description/cybrosys-debranding-6.png and /dev/null differ diff --git a/odoo-debrand/static/description/cybrosys-debranding-7.png b/odoo-debrand/static/description/cybrosys-debranding-7.png deleted file mode 100644 index 67cb83b6d..000000000 Binary files a/odoo-debrand/static/description/cybrosys-debranding-7.png and /dev/null differ diff --git a/odoo-debrand/static/description/cybrosys-debranding-8.png b/odoo-debrand/static/description/cybrosys-debranding-8.png deleted file mode 100644 index 228109c07..000000000 Binary files a/odoo-debrand/static/description/cybrosys-debranding-8.png and /dev/null differ diff --git a/odoo-debrand/static/description/footer.png b/odoo-debrand/static/description/footer.png deleted file mode 100644 index 530dcdb2c..000000000 Binary files a/odoo-debrand/static/description/footer.png and /dev/null differ diff --git a/odoo-debrand/static/description/icon.png b/odoo-debrand/static/description/icon.png deleted file mode 100644 index ca93c09ef..000000000 Binary files a/odoo-debrand/static/description/icon.png and /dev/null differ diff --git a/odoo-debrand/static/description/index.html b/odoo-debrand/static/description/index.html deleted file mode 100644 index 91beb3da5..000000000 --- a/odoo-debrand/static/description/index.html +++ /dev/null @@ -1,411 +0,0 @@ - -
-
-

- Odoo Debranding -

-

- Debrand Odoo Back-end + Front-End -

-
- Cybrosys Technologies -
- -
- cybrosys technologies -
-
-
-
-
-
-

- Overview -

-

- Want to debrand your company website? Odoo Debranding module developed by Cybrosys Technologies - helps you to change the aesthetic look of Odoo software via customizing them - with Logo and other branding changes. The module helps you to change almost every area of Odoo visuals, - delivering a brand new customized website. -

-
-
- -
-
-

- Features -

-

- - Debranding configuration page. -

-

- - Modify database selector page. -

- - Update website footer. -

-

- - Remove Odoo's default favicon.

-

- - Updated "About" list.

-

- - Updated warning messages.

-

- - Page title modification.

-
-
-
-
-

- Configuration -

-

- - From the website configuration page, you can configure the company logo, favicon, company name, and website. -

-
- -
-

- Database Selector Page -

-

- - Database selector page will be updated with the company logo configured in the back-end. -

-
- -
-

- Page Title -

-

- - "Odoo" will be removed from the page title. -

-
- -
-

- Warning -

-

- - All the warning messages will be updated, by removing "Odoo" from the warning message window.

-
- -
-

- Settings -

-

- - The settings dashboard will be updated.

-
- -
-

- About -

-

- - "My Odoo.com Account" will be removed from the "About" dropdown list.

-
- -
-

- Powered By -

-

- - "Powered by Odoo" in the footer will be replaced with the company name configured in the back-end.

-
- -
-

- Website Footer -

-

- - Website footer content will also be replaced with the company name configured in the website configuration page.

-
- -
- -
-
- - -
-
- cybrosys technologies -
-
-
-
-

- Our Services -

-
- - - -
- -
- - - -
-

- - Odoo Support -

- -
- -
-
-
-
-
-

- Our Industries -

-
-
- -
-
- - Odoo Industry - -
-
-
-

- - Trading - -

-

- Easily procure and sell your products. -

-
- -
-
- -
-
- - Odoo Industry - -
-
-
-

- - Manufacturing -

-

- Plan, track and schedule your operations. -

-
- -
-
- -
-
- - Odoo Industry - -
-
-
-

- - Restaurant -

-

- Run your bar or restaurant methodical. -

-
- -
-
- -
-
- - Odoo Industry - -
-
-
-

- - POS -

-

- Easy configuring and convivial selling. -

-
- -
-
- -
-
- - Odoo Industry - -
-
-
-

- - E-commerce & Website -

-

- Mobile friendly, awe-inspiring product pages. -

-
-
-
- -
-
- - Odoo Industry - -
-
-
-

- - Hotel Management -

-

- An all-inclusive hotel management application. -

-
-
-
- -
-
- - Odoo Industry - -
-
-
-

- - Education -

-

- A Collaborative platform for educational management. -

-
-
-
- -
-
- - Odoo Industry - -
-
-
-

- - Service Management -

-

- Keep track of services and invoice accordingly. -

-
-
-
-
-
-
- -
- diff --git a/odoo-debrand/views/database_manager_extend.html b/odoo-debrand/views/database_manager_extend.html deleted file mode 100644 index a91669949..000000000 --- a/odoo-debrand/views/database_manager_extend.html +++ /dev/null @@ -1,352 +0,0 @@ - - - - - {{ company_name }} - - - - - - - - - - -{% macro master_input() -%} -
- {% if insecure %} - - {% else %} - - - {% endif %} -
-{%- endmacro %} - -{% macro create_form() -%} -

Odoo is up and running!
- Create a new database by filling out the form, - you'll be able to install your first app in a minute.

- {{ master_input() }} -
-
-
- - -
-
-
-
-
-
- - -
-
-
-
- - - -
-
-
-
- - -
-
- - -
-
-
-
-
- -
-
-{%- endmacro %} - - - -
-
-
- -
- {% if insecure and databases %} -
- - Warning, {{ company_name }} database manager is not protected. - Please set a master password - to secure it. -
- {% endif %} - {% if error %} -
{{ error }}
- {% endif %} - {% if databases %} - - {% if manage %} -
- - - -
- {% else %} - - {% endif %} - {% else %} -
- {{ create_form() }} - -
- - or restore a database - - {% endif %} -
-
- - - - - - - - - - - - - - - - - - - - - - - diff --git a/odoo-debrand/views/views.xml b/odoo-debrand/views/views.xml deleted file mode 100644 index bf4fd8c83..000000000 --- a/odoo-debrand/views/views.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - Debranding Configuration - website.config.settings - - - - - - - - - - - - - - - - - - - - - - - -