Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
19940 มุมมอง

Hello together,

in odoo 9 the both views external_layout_header and external_layout_footer are available to configure the layout of the header and footer of reports like delivery note and invoice.


In odoo 13 I can only see that the view web.external_layout is called e.g. in the  invoice report. In odoo documentation  it is described that external_layout is adding the header and footer.

web.external_layout has following code

<t t-if="company.external_report_layout_id" t-call="{{company.external_report_layout_id.key}}"><t t-raw="0"/></t>

        <t t-else="else" t-call="web.external_layout_standard"><t t-raw="0"/></t>


I want set the company logo on the right hand side., but even in web.external_layout and in web.external_layout_standard I cannot find the right setup.

Has someone an idea? Thanks in advanced


cakbulut

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hello Paresh,

thank you for your answer. I have found out that in my configuration external_layout_din5008 is set in the company settings. So with the change of external_layout_din5008 I could do the needed changes.

Best regards

Cetin

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Cetin:

web.external_layout calls one of web.external_layout_standard or web.external_layout_clean or web.external_layout_boxed depending on the layout that has been selected for the document.

The xml for the logo is in these 3 views i.e. web.external_layout_standard / web.external_layout_clean / web.external_layout_boxed

Look for 

<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" alt="Logo"/>
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 25
1838
4
พ.ค. 24
5979
1
พ.ค. 23
3746
0
ก.ค. 17
3028
0
มี.ค. 16
2956