Browse Source

[CHG] Index Updated

pull/97/merge
Sreejith P 7 years ago
parent
commit
482f56708c
  1. 5
      odoo-debrand/__manifest__.py
  2. 12
      odoo-debrand/controllers/controllers.py
  3. 7
      odoo-debrand/doc/changelog.rst
  4. 3
      odoo-debrand/models/__init__.py
  5. BIN
      odoo-debrand/static/description/about-og.png
  6. BIN
      odoo-debrand/static/description/about.png
  7. BIN
      odoo-debrand/static/description/configurations.png
  8. 168
      odoo-debrand/static/description/index.html
  9. BIN
      odoo-debrand/static/description/odoo-title-og.png
  10. BIN
      odoo-debrand/static/description/odoo-title.png
  11. BIN
      odoo-debrand/static/description/powered-og.png
  12. BIN
      odoo-debrand/static/description/powered.png
  13. BIN
      odoo-debrand/static/description/settings-dash-og.png
  14. BIN
      odoo-debrand/static/description/settings-dashboard.png
  15. BIN
      odoo-debrand/static/description/warning-og.png
  16. BIN
      odoo-debrand/static/description/warning.png
  17. BIN
      odoo-debrand/static/description/website_footer-og.png
  18. BIN
      odoo-debrand/static/description/website_footer.png
  19. 22
      odoo-debrand/views/templates.xml
  20. 144
      odoo-debrand/views/views.xml

5
odoo-debrand/__manifest__.py

@ -22,7 +22,7 @@
##############################################################################
{
'name': "Odoo Debranding",
'version': "10.0.3.0",
'version': "10.0.1.0.0",
'summary': """Debrand Odoo""",
'description': """Debrand Odoo""",
'author': "Cybrosys Techno Solutions",
@ -31,7 +31,8 @@
'category': 'Tools',
'depends': ['base', 'im_livechat', 'website'],
'data': [
'views/views.xml'],
'views/views.xml',
'views/templates.xml'],
'demo': [],
'qweb': ["static/src/xml/*.xml"],
'images': ['static/description/banner.jpg'],

12
odoo-debrand/controllers/controllers.py

@ -23,12 +23,12 @@ 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):
@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

7
odoo-debrand/doc/changelog.rst

@ -1,7 +0,0 @@
Changelog
=========
`10.0.2.0.0`
------------
- Fixed Crash Issue on Un-installing.

3
odoo-debrand/models/__init__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from . import models
from . import models

BIN
odoo-debrand/static/description/about-og.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
odoo-debrand/static/description/about.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 40 KiB

BIN
odoo-debrand/static/description/configurations.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 27 KiB

168
odoo-debrand/static/description/index.html

@ -1,111 +1,162 @@
<section class="oe_container oe_dark">
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Odoo Debranding</h2>
<h2 class="oe_slogan">Odoo Debranding</h2>
<h3 class="oe_slogan">Debrand Odoo Back-end + Front-End</h3>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a></h4>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4>
</div>
<div class="oe_row oe_spaced" style="padding-left:65px;">
<h4>Features:</h4>
<div>
<span style="color:green;"> &#9745; </span> Debranding configuration page.<br/>
<span style="color:green;"> &#9745; </span> Modify database selector page.<br/>
<span style="color:green;"> &#9745; </span> Update website footer.<br/>
<span style="color:green;"> &#9745; </span> Remove Odoo's default favicon.<br/>
<span style="color:green;"> &#9745; </span> Updated "About" list.<br/>
<span style="color:green;"> &#9745; </span> Updated warning messages.<br/>
<span style="color:green;"> &#9745; </span> Page title modification.<br/>
<br/>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Configuration</h2>
<div class="col-md-12">
<img class="oe_picture oe_screenshot" src="configurations.png"/>
<div class="oe_picture">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32 text-justify" >
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.
</p>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Database Selector Page</h2>
<div class="col-md-12">
<img class="oe_picture oe_screenshot" src="db-selector.png"/>
<div style="text-align: center">
<p>
<h4>Configuration</h4>
<p>
</div>
<div style="text-align: center">
<span class="oe_mt32 text-justify" style="text-align: center;">From the website configuration page, you can configure the company logo, favicon, company name, and website. </span>
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="configurations.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>Database Selector Page</h4>
<p>
</div>
<div style="text-align: center">
<span class="oe_mt32 text-justify" style="text-align: center;">Database selector page will be updated with the company logo configured in the back-end.</span>
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="db-selector.png">
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Page Title</h2>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="odoo-title-og.png"/>
</div>
<div class="col-md-2" style="top:100px;color:green">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
<div style="text-align: center">
<p>
<h4>Page Title</h4>
</p>
</div>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="odoo-title.png"/>
<div class="" style="text-align: center">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="odoo-title.png">
</div>
<span class="oe_mt32 text-justify" style="text-align: center;">"Odoo" will be removed from the page title.</span>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Warning</h2>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="warning-og.png"/>
</div>
<div class="col-md-2" style="top:50px;color:green">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
<div style="text-align: center">
<p>
<h4>Warning</h4>
</p>
</div>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="warning.png"/>
<div class="" style="text-align: center">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="warning.png">
</div>
<span class="oe_mt32 text-justify" style="text-align: center;">All the warning messages will be updated, by removing "Odoo" from the warning message window.</span>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Settings</h2>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="settings-dash-og.png"/>
</div>
<div class="col-md-2" style="top:50px;color:green">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
<div style="text-align: center">
<p>
<h4>Settings</h4>
</p>
</div>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="settings-dashboard.png"/>
<div class="" style="text-align: center">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="settings-dashboard.png">
</div>
<span class="oe_mt32 text-justify" style="text-align: center;">The settings dashboard will be updated.</span>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">About</h2>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="about-og.png"/>
<div style="text-align: center">
<p>
<h4>About</h4>
</p>
</div>
<div class="col-md-2" style="top:50px;color:green">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
</div>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="about.png"/>
<div class="" style="text-align: center">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="about.png">
</div>
<span>"My Odoo.com Account" will be removed from the "About" dropdown list.</span>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Powered By</h2>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="powered-og.png"/>
</div>
<div class="col-md-2" style="top:50px;color:green">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
<div style="text-align: center">
<p>
<h4>Powered By</h4>
</p>
</div>
<div class="col-md-5">
<img class="oe_picture oe_screenshot" src="powered.png"/>
<div class="" style="text-align: center">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="powered.png">
</div>
<span>"Powered by Odoo" in the footer will be replaced with the company name configured in the back-end.</span>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Website Footer</h2>
<div class="col-md-12">
<img class="oe_picture" src="website_footer-og.png"/>
<div style="text-align: center">
<p>
<h4>Website Footer</h4>
</p>
</div>
<span class="" style="padding-left: 50%;color:green">
<i class="fa fa-hand-o-down fa-2x" aria-hidden="true"></i>
</span>
<div class="col-md-12">
<img class="oe_picture" src="footer.png"/>
<div class="" style="text-align: center">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="website_footer.png">
</div>
<span>Website footer content will also be replaced with the company name configured in the website configuration page.</span>
</div>
</div>
</section>
@ -135,4 +186,3 @@
</div>
</div>
</section>

BIN
odoo-debrand/static/description/odoo-title-og.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

BIN
odoo-debrand/static/description/odoo-title.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 12 KiB

BIN
odoo-debrand/static/description/powered-og.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

BIN
odoo-debrand/static/description/powered.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
odoo-debrand/static/description/settings-dash-og.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

BIN
odoo-debrand/static/description/settings-dashboard.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 69 KiB

BIN
odoo-debrand/static/description/warning-og.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

BIN
odoo-debrand/static/description/warning.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 25 KiB

BIN
odoo-debrand/static/description/website_footer-og.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

BIN
odoo-debrand/static/description/website_footer.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

22
odoo-debrand/views/templates.xml

@ -0,0 +1,22 @@
<openerp>
<data>
<!-- <template id="listing"> -->
<!-- <ul> -->
<!-- <li t-foreach="objects" t-as="object"> -->
<!-- <a t-attf-href="#{ root }/objects/#{ object.id }"> -->
<!-- <t t-esc="object.display_name"/> -->
<!-- </a> -->
<!-- </li> -->
<!-- </ul> -->
<!-- </template> -->
<!-- <template id="object"> -->
<!-- <h1><t t-esc="object.display_name"/></h1> -->
<!-- <dl> -->
<!-- <t t-foreach="object._fields" t-as="field"> -->
<!-- <dt><t t-esc="field"/></dt> -->
<!-- <dd><t t-esc="object[field]"/></dd> -->
<!-- </t> -->
<!-- </dl> -->
<!-- </template> -->
</data>
</openerp>

144
odoo-debrand/views/views.xml

@ -1,100 +1,97 @@
<odoo>
<record id="debrand_config" model="ir.ui.view">
<openerp>
<data>
<record id="debrand_config" model="ir.ui.view">
<field name="name">Debranding Configuration</field>
<field name="model">website.config.settings</field>
<field name="inherit_id" ref="website.view_website_config_settings"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='social']" position="after">
<group name="debrand_config" string="Debranding Configurations">
<label for="company_logo" string="Company Logo"/>
<div>
<div id="company_logo" class="oe_inline">
<field name="company_logo"
widget="image"
class="oe_avatar"
options="{'preview_image': 'image_medium', 'size': [130, 130]}"
/>
</div>
</div>
<label for="company_favicon" string="Company Favicon"/>
<div>
<div id="company_favicon" class="oe_inline">
<field name="company_favicon"
widget="image"
class="oe_avatar"
options="{'preview_image': 'image_small', 'size': [30, 30]}"/>
</div>
</div>
<label for="company_name" string="Company Name"/>
<xpath expr="//group[@name='social']" position="after">
<group name="debrand_config" string="Debranding Configurations">
<label for="company_logo" string="Company Logo"/>
<div>
<div id="company_name" class="oe_inline">
<field name="company_name"/>
<div id="company_logo" class="oe_inline">
<field name="company_logo"
widget="image"
class="oe_avatar"
options="{'preview_image': 'image_medium', 'size': [130, 130]}"
/>
</div>
</div>
<label for="company_website" string="Company Website"/>
<label for="company_favicon" string="Company Favicon"/>
<div>
<div id="company_website" class="oe_inline">
<field name="company_website"/>
<div id="company_favicon" class="oe_inline">
<field name="company_favicon"
widget="image"
class="oe_avatar"
options="{'preview_image': 'image_small', 'size': [30, 30]}"/>
</div>
</div>
</group>
</xpath>
<label for="company_name" string="Company Name"/>
<div>
<div id="company_name" class="oe_inline">
<field name="company_name"/>
</div>
</div>
<label for="company_website" string="Company Website"/>
<div>
<div id="company_website" class="oe_inline">
<field name="company_website"/>
</div>
</div>
</group>
</xpath>
</field>
</record>
</record>
<template id="login_layout" inherit_id="web.login_layout">
<xpath expr="//div[@class='text-center']" position="replace">
<xpath expr="//div[@class='text-center']" position="replace">
<div class="text-center" t-if="not disable_footer">
<t t-if="not disable_database_manager">
<a class="" href="/web/database/manager">Manage Databases</a> |
</t>
<a t-att-href="request.env['website'].sudo().search([])[0].company_name or ''" target="_blank">
<span t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>
</div>
</xpath>
</template>
<t t-if="not disable_database_manager">
<a class="" href="/web/database/manager">Manage Databases</a> |
</t>
<a t-att-href="request.env['website'].sudo().search([])[0].company_name or ''" target="_blank">
<span t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>
</div>
</xpath>
</template>
<template id="login_layout_secondary" inherit_id="web.menu_secondary">
<xpath expr="//div[@class='o_sub_menu_footer']" position="replace">
<div class="o_sub_menu_footer">
Powered by <a t-att-href="request.env['website'].sudo().search([])[0].company_website or ''" target="_blank">
<span t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>
</div>
</xpath>
<xpath expr="//div[@class='o_sub_menu_footer']" position="replace">
<div class="o_sub_menu_footer">
Powered by <a t-att-href="request.env['website'].sudo().search([])[0].company_website or ''" target="_blank">
<span t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>
</div>
</xpath>
</template>
<template id="login_layout_im_livechat" inherit_id="im_livechat.support_page">
<xpath expr="//body" position="replace">
<body>
<div class="main" style="opacity: 1;">
<h1 class="channel_name"><t t-esc="channel.name"/></h1>
<div>Website Live Chat Powered by <strong><t t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></strong></div>
</div>
</body>
</xpath>
<xpath expr="//body" position="replace">
<body>
<div class="main" style="opacity: 1;">
<h1 class="channel_name"><t t-esc="channel.name"/></h1>
<div>Website Live Chat Powered by <strong><t t-esc="request.env['website'].sudo().search([])[0].company_name or '"/></strong></div>
</div>
</body>
</xpath>
</template>
<template id="login_layout" inherit_id="mail.message_user_assigned">
<xpath expr="//p[last()]" position="replace">
<p style="color:#9E588B;">Powered by <a t-att-href="request.env['website'].sudo().search([])[0].company_website or ''">
<t t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>.</p>
</xpath>
</template>
<template id="layout_footer_copyright" inherit_id="website.layout" name="Footer Copyright">
<xpath expr="//div[@class='container mt16 mb8']" position="replace">
<div class="container mt16 mb8">
<div class="pull-right" t-if="not editable">
Powered by <a class="label label-danger" t-att-href="request.env['website'].sudo().search([])[0].company_website or ''">
<t t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/> </a>.
</div>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/>
</div>
<template id="layout_footer_copyright" inherit_id="website.layout_footer_copyright" name="Footer Copyright">
<xpath expr="//div[@class='container mt16 mb8']" position="replace">
<div class="container mt16 mb8">
<div class="pull-right" t-if="not editable">
Powered by <a class="label label-danger" t-att-href="request.env['website'].sudo().search([])[0].company_website">
<t t-esc="request.env['website'].sudo().search([])[0].company_name"/> </a>.
</div>
</xpath>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-esc="request.env['website'].sudo().search([])[0].company_name"/>
</div>
</div>
</xpath>
</template>
<template id="footer_extend" inherit_id="website.footer_custom">
<xpath position="replace" expr="//h2"/>
</template>
@ -136,8 +133,8 @@
<a class="" href="/web/database/manager">Manage Databases</a> |
</t>
<t>
<a t-att-href="request.env['website'].sudo().search([])[0].company_website or ''" target="_blank">Powered by
<span t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>
<a t-att-href="request.env['website'].sudo().search([])[0].company_website" target="_blank">Powered by
<span t-esc="request.env['website'].sudo().search([])[0].company_name"/></a>
</t>
</div>
@ -145,4 +142,5 @@
</div>
</xpath>
</template>
</odoo>
</data>
</openerp>
Loading…
Cancel
Save