コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
19948 ビュー

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
1842
4
5月 24
5985
1
5月 23
3753
0
7月 17
3028
0
3月 16
2956