Odoo Help

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 3,209 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 (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
11594
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 

LinkedIn

Blog

Stackoverflow

Sudhir Arya
ERP Harbor Consulting Services
skype: 
sudhir@erpharbor.com 
Sudhir Arya (ERP Harbor Consulting Services)
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,

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

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