odoo-module-colors_customiz.../views/include_css.xml

55 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="custom_css" name="custom_css" inherit_id="web.layout">
<xpath expr=".//head" position="inside">
<link rel="stylesheet" href="/custom_colors" />
<script type="text/javascript" src="/colors_customization/static/src/js/menu.js"></script>
</xpath>
<xpath expr="//title" position="replace">
<t t-if="theme_data">
<title t-if="theme_data and theme_data['meta_title']"><t t-esc="theme_data['meta_title']"/></title>
</t>
</xpath>
</template>
<template id="menu_secondary" inherit_id="web.menu_secondary">
<xpath expr="//div[@class='oe_footer']" position="replace">
<div class='oe_footer'>
<t t-if="theme_data">
<a t-if="theme_data['footer_text'] and theme_data['footer_url'] and theme_data['footer_color']" t-att-href="theme_data['footer_url']" target="_blank"><span t-att-style="'color:'+theme_data['footer_color']"><t t-esc="theme_data['footer_text']"/></span></a>
</t>
</div>
</xpath>
</template>
<!-- Just remove since we do not have a company -->
<template id="login_layout" inherit_id="web.login_layout" name="Login Layout">
<xpath expr="//div[@class='oe_single_form_footer']" position="replace">
<div class="oe_single_form_footer" t-if="not disable_footer">
<t t-if="not disable_database_manager">
<a class="oe_login_manage_db" t-attf-href="/web/database/manager{{ '?debug' if debug else '' }}">Manage Databases</a>
<span t-if="theme_data" class="oe_footer_seperator"> | </span>
</t>
<t t-if="theme_data">
<a t-if="theme_data['footer_url']" href="https://www.odoo.com" t-att-href="theme_data['footer_url']" target="_blank">
<span><t t-esc="theme_data['footer_text']"/></span>
</a>
</t>
</div>
</xpath>
</template>
<template id="web_layout" inherit_id="web.layout">
<xpath expr="//link[@rel='shortcut icon']" position="replace">
<t t-if="theme_data">
<link t-if="theme_data['url_favicon']" rel="shortcut icon" t-att-href="theme_data['url_favicon']" type="image/x-icon"/>
</t>
</xpath>
</template>
<!-- Fix the problem of reverted kaban columns -->
<template id="assets_frontend" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel='stylesheet' href='/colors_customization/static/src/css/kanban.css'></link>
</xpath>
</template>
</data>
</openerp>