Commit a8094257 authored by santi's avatar santi
Browse files

Brand the page titles

parent 19560f87
...@@ -11,6 +11,7 @@ Customization on the webs for the FreedomCoop invoices web ...@@ -11,6 +11,7 @@ Customization on the webs for the FreedomCoop invoices web
'website': 'https://freedomcoop.eu', 'website': 'https://freedomcoop.eu',
'data': [ 'data': [
'views/templates.xml', 'views/templates.xml',
'views/qweb.xml',
], ],
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,
......
openerp.web_custom = function(instance) {
instance.web.WebClient.include({
init: function(parent, client_options) {
this._super(parent, client_options);
this.set('title_part', {"zopenerp": "FreedomCoop Invoices"});
},
});
};
<openerp>
<data>
<template id="assets_backend" name="web_dialog_size assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<!-- <link rel="stylesheet" href="/web_custom/static/src/css/custom.css"/> -->
<script type="text/javascript" src="/web_custom/static/src/js/custom.js"></script>
</xpath>
</template>
</data>
</openerp>
...@@ -16,5 +16,10 @@ ...@@ -16,5 +16,10 @@
</div> </div>
</xpath> </xpath>
</template> </template>
<template id="freedomcoop_title" name="change title" inherit_id="web.layout">
<xpath expr="//title" position="replace">
<title>FreedomCoop Invoices</title>
</xpath>
</template>
</data> </data>
</openerp> </openerp>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment