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

Hi all. I need to add an additional image to the generic PDF template for one of our companies. The image needs to be show in the top-right corner of the page, directly under the header. The images needs to be shown on all Purchase Orders, RFQs, Sales Orders, Quotes and Invoices.

How do I do this in Studio? Can someone point me in the right direction?

Thanks,

Paul

頭像
捨棄
最佳答案

1.Go to company form view --> add a customized field  using studio(x_studio_im)

2.Go to general settings under "document layout"-->choose your layout(external_layout_standard)


3.open it(Edit layout), and add this code as shown in the pic below:

             <div class="row">
          <div class="col-12 text-right" style="margin-top:20px;">
           <img t-if="company.x_studio_im" t-att-src="image_data_uri(company.x_studio_im)" style="max-height: 45px;" alt="Logo"/>
          </div>
            </div>

4. save changes --> save settings

5. after refresh this page go check your new layout
from settings-->general settings--> under document layout-->"preview document"

6.finally you can check every report(invoice,sale order, purchase order)

invoice

Hope it will help you :)

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
4月 25
24938
1
12月 24
1087
2
8月 24
3539
1
1月 24
1060
2
10月 23
2773