Skip to Content
Menu
This question has been flagged
1511 Views

Hi,


I've created two qweb reports:

- One for Quotation (when the document is in 'draft' or 'sent' state) 

- And one for Sales Order (when the ducment is in 'sale' or 'done')


I want the Print Menu to show only one of the reports, depending on which state the document is:


If doc.state in ['draft' , 'sent', 'cancel'] I would like to show the Quotation report on Print Menu

If doc.state in ['sale' , 'done'] I would like to show the Sales Order report on Print Menu


How can I do that?

Avatar
Discard