I am wondering what is the best way to add a logo in a tryton report for 
example in the sale.sale report.

The definition of the report in sale.xml is:

        <record model="ir.action.report" id="report_sale">
            <field name="name">Sale</field>
            <field name="model">sale.sale</field>
            <field name="report_name">sale.sale</field>
            <field name="report">sale/sale.odt</field>
            <field name="style">company/header_A4.odt</field>
        </record>
        <record model="ir.action.keyword" id="report_sale_keyword">
            <field name="keyword">form_print</field>
            <field name="model">sale.sale,-1</field>
            <field name="action" ref="report_sale"/>
        </record>                                     

One way could be to edit the header and insert a graphic in the odt: it is 
the company/header_A4.odt file

But in the case of a multi-company installation in which we login to 
multiple companies how can we have different logo per company ?
In header_A4.odt using Genshi directives we can access the name, address 
and other fields of current company. 

Is there a way to reference a variable logo which depends on the current 
company ?

Reply via email to