Skip to Content
Menu
This question has been flagged
1 Reply
2116 Views

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

Avatar
Discard
Best Answer

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 :)

Avatar
Discard
Related Posts Replies Views Activity
2
Sep 24
17652
1
Dec 24
53
2
Aug 24
1956
1
Jan 24
326
2
Oct 23
1674