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

12
odoo-debrand/controllers/controllers.py

@ -23,12 +23,12 @@ db_monodb = http.db_monodb
class BinaryCustom(Binary): class BinaryCustom(Binary):
@http.route([ @http.route([
'/web/binary/company_logo', '/web/binary/company_logo',
'/logo', '/logo',
'/logo.png', '/logo.png',
], type='http', auth="none") ], type='http', auth="none")
def company_logo(self, dbname=None, **kw): def company_logo(self, dbname=None, **kw):
imgname = 'logo' imgname = 'logo'
imgext = '.png' imgext = '.png'
company_logo = request.env['website'].sudo().search([])[0].company_logo 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.

1
odoo-debrand/models/__init__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*- # -*- 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"> <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> <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> </div>
</section> </section>
<section class="oe_container oe_dark"> <section class="oe_container oe_dark">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Configuration</h2> <div class="oe_picture">
<div class="col-md-12"> <h3 class="oe_slogan">Overview</h3>
<img class="oe_picture oe_screenshot" src="configurations.png"/> <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>
</div> </div>
</section> </section>
<section class="oe_container oe_dark"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Database Selector Page</h2> <div style="text-align: center">
<div class="col-md-12"> <p>
<img class="oe_picture oe_screenshot" src="db-selector.png"/> <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>
</div> </div>
</section> </section>
<section class="oe_container"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Page Title</h2> <div style="text-align: center">
<div class="col-md-5"> <p>
<img class="oe_picture oe_screenshot" src="odoo-title-og.png"/> <h4>Page Title</h4>
</div> </p>
<div class="col-md-2" style="top:100px;color:green">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i>
</div> </div>
<div class="col-md-5"> <div class="" style="text-align: center">
<img class="oe_picture oe_screenshot" src="odoo-title.png"/> <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>
</div> </div>
</section> </section>
<section class="oe_container oe_dark"> <section class="oe_container oe_dark">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Warning</h2> <div style="text-align: center">
<div class="col-md-5"> <p>
<img class="oe_picture oe_screenshot" src="warning-og.png"/> <h4>Warning</h4>
</div> </p>
<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>
<div class="col-md-5"> <div class="" style="text-align: center">
<img class="oe_picture oe_screenshot" src="warning.png"/> <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>
</div> </div>
</section> </section>
<section class="oe_container"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Settings</h2> <div style="text-align: center">
<div class="col-md-5"> <p>
<img class="oe_picture oe_screenshot" src="settings-dash-og.png"/> <h4>Settings</h4>
</div> </p>
<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>
<div class="col-md-5"> <div class="" style="text-align: center">
<img class="oe_picture oe_screenshot" src="settings-dashboard.png"/> <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>
</div> </div>
</section> </section>
<section class="oe_container oe_dark"> <section class="oe_container oe_dark">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">About</h2> <div style="text-align: center">
<div class="col-md-5"> <p>
<img class="oe_picture oe_screenshot" src="about-og.png"/> <h4>About</h4>
</p>
</div> </div>
<div class="col-md-2" style="top:50px;color:green"> <div class="" style="text-align: center">
<i class="fa fa-hand-o-right fa-2x" aria-hidden="true"></i> <div class="oe_demo oe_picture oe_screenshot">
</div> <img style="border:10px solid white;" src="about.png">
<div class="col-md-5"> </div>
<img class="oe_picture oe_screenshot" src="about.png"/> <span>"My Odoo.com Account" will be removed from the "About" dropdown list.</span>
</div> </div>
</div> </div>
</section> </section>
<section class="oe_container"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Powered By</h2> <div style="text-align: center">
<div class="col-md-5"> <p>
<img class="oe_picture oe_screenshot" src="powered-og.png"/> <h4>Powered By</h4>
</div> </p>
<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>
<div class="col-md-5"> <div class="" style="text-align: center">
<img class="oe_picture oe_screenshot" src="powered.png"/> <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>
</div> </div>
</section> </section>
<section class="oe_container oe_dark"> <section class="oe_container oe_dark">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Website Footer</h2> <div style="text-align: center">
<div class="col-md-12"> <p>
<img class="oe_picture" src="website_footer-og.png"/> <h4>Website Footer</h4>
</p>
</div> </div>
<span class="" style="padding-left: 50%;color:green"> <div class="" style="text-align: center">
<i class="fa fa-hand-o-down fa-2x" aria-hidden="true"></i> <div class="oe_demo oe_picture oe_screenshot">
</span> <img style="border:10px solid white;" src="website_footer.png">
<div class="col-md-12"> </div>
<img class="oe_picture" src="footer.png"/> <span>Website footer content will also be replaced with the company name configured in the website configuration page.</span>
</div> </div>
</div> </div>
</section> </section>
@ -135,4 +186,3 @@
</div> </div>
</div> </div>
</section> </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> <openerp>
<record id="debrand_config" model="ir.ui.view"> <data>
<record id="debrand_config" model="ir.ui.view">
<field name="name">Debranding Configuration</field> <field name="name">Debranding Configuration</field>
<field name="model">website.config.settings</field> <field name="model">website.config.settings</field>
<field name="inherit_id" ref="website.view_website_config_settings"/> <field name="inherit_id" ref="website.view_website_config_settings"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//group[@name='social']" position="after"> <xpath expr="//group[@name='social']" position="after">
<group name="debrand_config" string="Debranding Configurations"> <group name="debrand_config" string="Debranding Configurations">
<label for="company_logo" string="Company Logo"/> <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"/>
<div> <div>
<div id="company_name" class="oe_inline"> <div id="company_logo" class="oe_inline">
<field name="company_name"/> <field name="company_logo"
widget="image"
class="oe_avatar"
options="{'preview_image': 'image_medium', 'size': [130, 130]}"
/>
</div> </div>
</div> </div>
<label for="company_website" string="Company Website"/> <label for="company_favicon" string="Company Favicon"/>
<div> <div>
<div id="company_website" class="oe_inline"> <div id="company_favicon" class="oe_inline">
<field name="company_website"/> <field name="company_favicon"
widget="image"
class="oe_avatar"
options="{'preview_image': 'image_small', 'size': [30, 30]}"/>
</div> </div>
</div> </div>
</group> <label for="company_name" string="Company Name"/>
</xpath> <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> </field>
</record> </record>
<template id="login_layout" inherit_id="web.login_layout"> <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"> <div class="text-center" t-if="not disable_footer">
<t t-if="not disable_database_manager"> <t t-if="not disable_database_manager">
<a class="" href="/web/database/manager">Manage Databases</a> | <a class="" href="/web/database/manager">Manage Databases</a> |
</t> </t>
<a t-att-href="request.env['website'].sudo().search([])[0].company_name or ''" target="_blank"> <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> <span t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>
</div> </div>
</xpath>
</template>
</xpath>
</template>
<template id="login_layout_secondary" inherit_id="web.menu_secondary"> <template id="login_layout_secondary" inherit_id="web.menu_secondary">
<xpath expr="//div[@class='o_sub_menu_footer']" position="replace"> <xpath expr="//div[@class='o_sub_menu_footer']" position="replace">
<div class="o_sub_menu_footer"> <div class="o_sub_menu_footer">
Powered by <a t-att-href="request.env['website'].sudo().search([])[0].company_website or ''" target="_blank"> 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> <span t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>
</div> </div>
</xpath> </xpath>
</template> </template>
<template id="login_layout_im_livechat" inherit_id="im_livechat.support_page"> <template id="login_layout_im_livechat" inherit_id="im_livechat.support_page">
<xpath expr="//body" position="replace"> <xpath expr="//body" position="replace">
<body> <body>
<div class="main" style="opacity: 1;"> <div class="main" style="opacity: 1;">
<h1 class="channel_name"><t t-esc="channel.name"/></h1> <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>Website Live Chat Powered by <strong><t t-esc="request.env['website'].sudo().search([])[0].company_name or '"/></strong></div>
</div> </div>
</body> </body>
</xpath> </xpath>
</template> </template>
<template id="login_layout" inherit_id="mail.message_user_assigned"> <template id="login_layout" inherit_id="mail.message_user_assigned">
<xpath expr="//p[last()]" position="replace"> <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 ''"> <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> <t t-esc="request.env['website'].sudo().search([])[0].company_name or ''"/></a>.</p>
</xpath> </xpath>
</template> </template>
<template id="layout_footer_copyright" inherit_id="website.layout_footer_copyright" name="Footer Copyright">
<template id="layout_footer_copyright" inherit_id="website.layout" name="Footer Copyright"> <xpath expr="//div[@class='container mt16 mb8']" position="replace">
<xpath expr="//div[@class='container mt16 mb8']" position="replace"> <div class="container mt16 mb8">
<div class="container mt16 mb8"> <div class="pull-right" t-if="not editable">
<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">
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"/> </a>.
<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>
</div> </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>
<template id="footer_extend" inherit_id="website.footer_custom"> <template id="footer_extend" inherit_id="website.footer_custom">
<xpath position="replace" expr="//h2"/> <xpath position="replace" expr="//h2"/>
</template> </template>
@ -136,8 +133,8 @@
<a class="" href="/web/database/manager">Manage Databases</a> | <a class="" href="/web/database/manager">Manage Databases</a> |
</t> </t>
<t> <t>
<a t-att-href="request.env['website'].sudo().search([])[0].company_website or ''" target="_blank">Powered by <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 or ''"/></a> <span t-esc="request.env['website'].sudo().search([])[0].company_name"/></a>
</t> </t>
</div> </div>
@ -145,4 +142,5 @@
</div> </div>
</xpath> </xpath>
</template> </template>
</odoo> </data>
</openerp>
Loading…
Cancel
Save