Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3513 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
квіт. 25
24929
1
груд. 24
1077
2
серп. 24
3537
1
січ. 24
1059
2
жовт. 23
2765