Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6983 Lượt xem

Hi all running Odoo v8, is there a way to remove the company logo permanently from the website interface, I have tried Settings >> Companies >> [company] >> Edit >> .... but there is no option to disable. I have also tried un-ticking Customise >> Main Layout >> Show Logo 

Thanks. 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

do you mean the logo of your company in the head of your website, to the left of the main menu?

Customise >> Main Layout >> Show Logo should work..

anyway you can overwrite the default template, below the section you should edit in website/views/website_templates.xml

<template id="layout_logo_show" inherit_id="website.layout" customize_show="True" name="Show Logo">
<xpath expr="//header//a[@class='navbar-brand']" position="replace">
<a href="/" class="navbar-brand logo">
<img src="/logo.png" t-att-alt="'Logo of %s' % res_company.name" t-att-title="res_company.name"/>
</a>
</xpath>
</template>

remember to put the customization on a module so you don't loose everything when you update the code

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 24
3983
Odoo's Font Đã xử lý
2
thg 6 22
25117
2
thg 3 22
5884
Website Logo Size Đã xử lý
1
thg 7 19
6939
1
thg 10 18
6329