You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

167 lines
9.3 KiB

<odoo>
<record id="debrand_config" model="ir.ui.view">
<field name="name">Debranding Configuration</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('app_settings_block')]" position="after">
<div class="app_settings_block" data-string="Debrand" string="Debrand" data-key="odoo-debrand" groups="website.group_website_designer">
<field name="website_id" invisible="1"/>
<h2>Debranding Configurations</h2>
<div class="row mt16 o_settings_container" id="webmaster_settings">
<div class="col-xs-12 col-md-6 o_setting_box" id="domain_setting">
<div class="o_setting_right_pane">
<group>
<group>
<label string="Company Logo"/>
<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>
</group>
<group>
<label string="Company Favicon"/>
<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>
</group>
</group>
<div class="row">
<label class="col-md-3 o_light_label" for="company_name" />
<div id="company_name" class="oe_inline">
<field name="company_name"/>
</div>
</div>
<div class="row">
<label class="col-md-3 o_light_label" for="company_website" />
<div id="company_website" class="oe_inline">
<field name="company_website"/>
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<template id="login_layout_extend_11" name="Login Layout Extend" inherit_id="web.login_layout">
<xpath position="replace" expr="//div[1]">
<div class="row" style="margin-top: 15px;">
<t t-set="website_id" t-value="request.env['website'].sudo().search([])"/>
<div class="col-md-6 col-md-offset-3 o_database_list">
<div class="text-center" t-if="website_id and website_id[0] and website_id[0].company_logo">
<img t-att-src="'data:image/png;base64,%s' % to_text(website_id[0].company_logo or '')" width="180px" height="80px"/>
</div>
<div class="text-center" t-if="not website_id and website_id[0] and website_id[0].company_logo">
<img t-attf-src="/web/binary/company_logo{{ '?dbname='+db if db else '' }}"/>
</div>
<t t-raw="0"/>
<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>
<t>
<a t-att-href="website_id and website_id[0] and website_id[0].company_website or ''"
target="_blank">Powered by
<span t-esc="website_id and website_id[0] and website_id[0].company_name or ''"/></a>
</t>
</div>
</div>
</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="//a[@class='o_sub_menu_logo']" position="replace">
<t t-set="website_id" t-value="request.env['website'].sudo().search([])"/>
<a class="o_sub_menu_logo" t-att-href="'/web/?debug' if debug else '/web'">
<span class="oe_logo_edit">My data</span>
<div class="text-center" t-if="website_id and website_id[0] and website_id[0].company_logo">
<img t-att-src="'data:image/png;base64,%s' % to_text(website_id[0].company_logo or '')" width="200px" height="100px"/>
</div>
</a>
</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>
</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>
</div>
</xpath>
</template>
<template id="footer_extend" inherit_id="website.footer_custom">
<xpath position="replace" expr="//h2"/>
</template>
<!--put the company logo or the fav icons path here in href-->
<template id="web_layout_extend" inherit_id="web.layout">
<xpath expr="//title" position="replace">
<t t-set="website_id" t-value="request.env['website'].sudo().search([])"/>
<title><t t-esc="website_id and website_id[0] and website_id[0].company_name or ''"/></title>
</xpath>
<xpath position="replace" expr="//link[@rel='shortcut icon']"><t>
<link type="image/x-icon" rel="shortcut icon"
t-att-href="'data:image/png;base64,%s' % to_text(website_id and website_id[0] and website_id[0].company_favicon or '')"
/></t>
</xpath>
</template>
<template id="debranding_title" name="Debranding title JS" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/odoo-debrand/static/src/js/title.js"/>
</xpath>
</template>
<!--Code for Enterprise Edition-->
<!--<template id="remove_bbotstrap_fav" inherit_id="web_enterprise.webclient_bootstrap">-->
<!--<xpath expr="//link[@rel='icon']" position="replace">-->
<!--<link rel="icon" sizes="192x192" href=""/>-->
<!--</xpath>-->
<!--<xpath expr="//link[@rel='apple-touch-icon']" position="replace">-->
<!--<link rel="apple-touch-icon" sizes="152x152" href=""/>-->
<!--</xpath>-->
<!--</template>-->
</odoo>