Community mailing list archives

community@mail.odoo.com

Re: Buttons in print menus

by
Kranksoft, Brecht Verhaeghe
- 10/16/2014 05:21:29
Hi,

I think something like this does it automatically:

    <report 
        id="my_custom_report_id"
        string="My report name"
        model="res.partner" 
        report_type="qweb-pdf"
        file="file_of_the_report" 
        name="module_name.report_name" 
    />


The file is the xml file in the custom module, name is the id of the xml you wan't to use.
The file is automatically added to the print menu of the corresponding model (here res.partner)

You can do this in the web interface to but i never did it.


Met vriendelijke groeten,

Brecht Verhaeghe

brechtverhaeghe@kranksoft.be
tel 0497/46 07 27

2014-10-15 11:09 GMT+02:00 John Pia Jr <jpiajr@southmill.com>:

This may not be the best place to ask this question as I understand it is a simple request, but I cannot for anything online with an example.

Anyway I am looking for a way to add an additional print button to the print menu on various forms and views. Can someone please provide me with an example.

Thanks in advanced.

John

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe