Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

[6.1] How to change the report invoked by the print button in the invoice form

By
0x413x
on 4/27/13, 2:25 PM 2,459 views

Hi Everybody,

I have created a new aeroo report which I can print by clicking on the action button on the right panel of the form. But I want to print it too via the 'print' button at the bottom on the form.

It seems I cannot do that in the configuration panel of the actions/reports. I have looked on the xml file, but I don't know how to change.

Can anyone help my please ?

Regards,

1

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 5/2/13, 11:11 AM

You can do it by set value multi="False" and key2="client_print_multi".

Set multi="False" in aeroo report record in report xml file like this:

<record model='ir.actions.report.xml' id='your_record_id'>
    ...
    ...
    <field name='multi' eval='False'/>
    ...
    ...
</record>

Then set client_print_multi like this:

<ir_set>
    ...
    ...
    <field eval="'client_print_multi'" name="key2"/>
    ...
    ...
</ir_set>

You can find some more things about Linking Action to Event.

0
0x413x
On 5/2/13, 10:54 AM

Hi,

I am still looking for an answer :( Any idea ?

Thanks,

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/27/13, 2:25 PM
Seen: 2459 times
Last updated: 3/16/15, 8:10 AM