10バックエンドの開発には、ログインページにodooとデータベースのドロップダウンのロゴを変更したいです。この質問に関連する答えは問題を解決できませんでした。 私の試み: 1-マニフェスト作成2- mythemeモジュールを作成し、以下に示すようにテンプレートwebclient_template.xmlodoo私はodoo 10.Iに取り組んでいます
私のビューを継承することによって 3-書かれたビューをINIT:
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="assets_backend" name="mytheme assets" inherit_id="web.assets_backend"><xpath expr="." position="inside"><link rel="stylesheet" href="/mytheme/static/src/css/base.css"/><script type="text/javascript" src="/mytheme/static/src/js/mytheme.js"></script></xpath>
</template><template id="mytheme.login_layout" inherit_id="web.login_layout" name="My Theme Login">
<xpath expr="//div[@class='oe_single_form_footer']" position="replace">
<div class="oe_single_form_footer">Here you can write your login footer</div>
</xpath>
<xpath expr="//div[@class='oe_single_form_logo']" position="replace">
<div class="oe_single_form_logo">
<img src="/mytheme/static/src/img/logo.png"
alt="My Theme Logo" title="My Theme Logo" />
</div>
</xpath>
</template>
</data>
</openerp>
以下に示す私のマニフェストマニフェスト .py:
{
'name': 'mytheme',
'version': '0.1',
'depends': ['base','web'],
'external_dependencies': {},
'data': ['views/webclient_templates.xml'],
'js': ['static/src/js/mytheme.js'],
'css': ['static/src/css/base.css'],
'installable': True,
'auto_install':True,
'active':True,
}
もう一つの問題は、私は、JSファイルのために書くことになって何です? データベースの選択をクリアするために私のベースファイルは、以下のように:
base.css:
<templates>
<!-- Templates modified at the web start, before loading of a database. -->
<!-- Remove the Manage database link, but keep the Powered by OpenERP-->
<
t t-extend="Login">
<t t-jquery="div.oe_login_footer" t-operation="replace">
<a href="http://www.openerp.com" target="_blank">Powered by <span>OpenERP</span></a>
</t>
</t>
</templates
Used links: https://www.odoo.com/forum/help-1/question/how-we-removing-link-that-appear-on-login-page-of-openerp-odoo-54623
あなたが会社のロゴを変更した場合、それが自動的にデータベースのログインページだけでなく、データベースのドロップダウン・メニュー・ページに変更されます。 –
既存のテンプレートを拡張してカスタマイズする方法はありますか。誰でも知っているのであれば –
ログイン画面のロゴやデータベース選択ロゴを変更したいロゴを画面に追加してください。 –