Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Printing a report if its a quote vs sales order #387

Open
lumppotato opened this issue Jan 22, 2025 · 1 comment
Open

No Printing a report if its a quote vs sales order #387

lumppotato opened this issue Jan 22, 2025 · 1 comment

Comments

@lumppotato
Copy link

I was trying to figure this out to have it print sales orders but not a quote.

When we email a quote its also printing it but we only want to print a sales order.

Was thinking about duplicating the report and try to use different reports if its a draft vs sale.

Thanks for all your hard work.

@gdgellatly
Copy link
Contributor

Just override context

see

if self.env.context.get("must_skip_send_to_printer"):
            return False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants