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.

1

How can i add a print button ? [Closed]

By
ZHANG shuo
on 5/21/13, 7:43 AM 3,462 views

The Question has been closed

by
Sudhir Arya (SA)
on 06/11/2013 07:30:52

I saw a button print appear when i select one champ in a view of saas mode, how can i add a button like that in local mode?

3

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/21/13, 8:39 AM

If you want to add a report in Print you don't need to do anything in <report ./> report tag. If you want to hide report from Print you have to set menu=False in <report ./>

This is example of Invoice report fo account.invoice:

<report
    auto="False"
    id="account_invoices"
    model="account.invoice"
    name="account.invoice"
    rml="account/report/account_print_invoice.rml"
    string="Invoices"
    attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')"
    attachment_use="True"
    usage="default"/>

If you want to define any action in Print then you need to define key2="client_print_multi" in your action.

You can learn more about Linkig Events to Action.

1

Borni DHIFI

--Borni DHIFI--
5102
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 5/21/13, 7:50 AM

Hi,

use key2="client_print_multi" in act_window to add submenu print to .

see doc OpenERP Action creation

About This Community

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

Question tools

0 follower(s)

Stats

Asked: 5/21/13, 7:43 AM
Seen: 3462 times
Last updated: 3/16/15, 8:10 AM