跳至內容
選單
此問題已被標幟
3 回覆
19961 瀏覽次數

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"/>
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
6月 25
1866
4
5月 24
6004
1
5月 23
3768
0
7月 17
3032
0
3月 16
2971