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?
Maybe this can help you.
https://www.odoo.com/forum/help-1/how-i-can-hide-restrict-print-menu-report-base-on-condition-odoo12-cc-150239