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

Hello, I'm sorry for the inconvenience caused.


I have a binary type field, where what I am looking for is to replace the logo that the company has, with the image that is uploaded in the field... I am trying to work it in the reports from the sales module, but it seems that the header tag was removed in the sales reports in Odoo 16 (why I can't find it)


How can I replace the logo that comes by default, so that it uploads in the binary field?


Sorry for the inconvenience, odoo 16 community, thanks.

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

Hello Learning_Odoo,

Please find below code it may help you to resolve this issue.

I hope this can help you.

Thanks & Regards,
Email:   odoo@aktivsoftware.com 

Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ

Please find code here :-

First, inherit base layout in custom layout and add xpath fro header class and replace with custom header.

<odoo>
<template id="website.layout_inherit" inherit_id="website.layout" name="Custom Website Layout">
<xpath expr="//div[@class='o_logo']" position="replace">
<div class="o_logo">
<a href="/">
<img src="/your_module/static/src/img/new_logo.png" alt="Your Logo" class="img-fluid"/>
</a>
</div>
</xpath>
</template>
</odoo>

Tác giả

Thanks man!

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 24
1923
1
thg 4 23
2359
1
thg 12 22
1814
3
thg 4 24
6750
0
thg 3 24
766