sexta-feira, 29 de outubro de 2010

How to add a logo picture to Openerp Sales Order report

To add a logo picture to the sales order report there are 2 possibilities:

1. Adding directly to the company General Information tab and changing the following values at Header/Footer tab for ajusting the height and width:
        <image x="1.3cm" y="27.6cm" height="40.0" >[[company.logo]]</image>

Openerp company configuration

Openerp sales order report preview

 2. Inserting the picture into the *.sxw file and upload the picture file to the server root folder with the appropriate file name.
Open the Sales Order report *:swx file.
Insert picture into *.sxw file
Then follow the instructions to load the changed *.sxw file into Openerp.

When trying to run the report you will get the following error:

Error when running the sales report

The last line of the error indicates that the logo file is missing at Openerp server.
Please upload to the server root folder the logo file that we previously inserted in the *.sxw file and rename it with the name indicated in the error. At the end you will probably get the following result:

Adding a logo using openoffice
Seel also: How to edit Openerp POS receipt template, How to edit Openerp Sales Order report/template

Sem comentários:

Enviar um comentário

PyCharm: Your Python BFF

Ever felt like you're drowning in a sea of Python code? Fear not, my friend, for PyCharm is here to save the day! It's like having a...