robert rottermann
8 years ago
committed by
Holger Brunn
4 changed files with 75 additions and 97 deletions
-
1support_branding/README.rst
-
28support_branding/__manifest__.py
-
121support_branding/static/src/js/support_branding.js
-
22support_branding/views/qweb.xml
@ -1,17 +1,27 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<openerp> |
|
||||
|
<odoo> |
||||
<data> |
<data> |
||||
<template id="support_branding_assets" name="support_branding assets" inherit_id="web.assets_backend"> |
|
||||
|
<template |
||||
|
id="support_branding_assets" |
||||
|
name="support_branding assets" |
||||
|
inherit_id="web.assets_backend"> |
||||
<xpath expr="." position="inside"> |
<xpath expr="." position="inside"> |
||||
<script type="text/javascript" src="/support_branding/static/src/js/support_branding.js"></script> |
<script type="text/javascript" src="/support_branding/static/src/js/support_branding.js"></script> |
||||
<link rel="stylesheet" href="/support_branding/static/src/css/support_branding.css" /> |
<link rel="stylesheet" href="/support_branding/static/src/css/support_branding.css" /> |
||||
</xpath> |
</xpath> |
||||
</template> |
</template> |
||||
<template id="menu_secondary" inherit_id="web.menu_secondary"> |
<template id="menu_secondary" inherit_id="web.menu_secondary"> |
||||
<xpath expr="//div[@class='oe_footer']" position="inside"> |
|
||||
<span>, supported by <a target="_new" t-att-href="request.env['ir.config_parameter'].get_param('support_branding.company_url')" t-att-style="'color: ' + request.env['ir.config_parameter'].get_param('support_branding.company_color')"><t t-esc="request.env['ir.config_parameter'].get_param('support_branding.company_name')" /></a></span> |
|
||||
<div t-if="request.env['ir.config_parameter'].get_param('support_branding.release')">Version <t t-esc="request.env['ir.config_parameter'].get_param('support_branding.release')" /></div> |
|
||||
|
<xpath expr="//div[@class='o_sub_menu_footer']" position="inside"> |
||||
|
<span>, supported by |
||||
|
<a target="_new" t-att-href="request.env['ir.config_parameter'].get_param('support_branding.company_url')" |
||||
|
t-att-style="'color: ' + request.env['ir.config_parameter'].get_param('support_branding.company_color')"> |
||||
|
<t t-esc="request.env['ir.config_parameter'].get_param('support_branding.company_name')" /> |
||||
|
</a> |
||||
|
</span> |
||||
|
<div t-if="request.env['ir.config_parameter'].get_param('support_branding.release')"> |
||||
|
Version <t t-esc="request.env['ir.config_parameter'].get_param('support_branding.release')" /> |
||||
|
</div> |
||||
</xpath> |
</xpath> |
||||
</template> |
</template> |
||||
</data> |
</data> |
||||
</openerp> |
|
||||
|
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue