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

base_report_to_printer opens a copy of sent report #16

Closed
yvaucher opened this issue Dec 9, 2014 · 2 comments
Closed

base_report_to_printer opens a copy of sent report #16

yvaucher opened this issue Dec 9, 2014 · 2 comments
Assignees

Comments

@yvaucher
Copy link
Member

yvaucher commented Dec 9, 2014

An improvement would be to avoid opening the report.

Previously we did an attempt to raise a warning message to give a feed back to the user that the report has been printed. But this was breaking the workflow when printing multiple reports. So it needs some improvements.

@sebalix
Copy link
Contributor

sebalix commented Dec 9, 2014

I just checked the code. Maybe adding a new printing.action named server_no_client, and making the exp_report_get() method quiet with it would solve the problem?

@ferdiga
Copy link

ferdiga commented Dec 9, 2014

(1)
def _available_action_types(self):
return [('server', 'Send to Printer'),
('client', 'Send to Client'),
('user_default', "Use user's defaults"),
]
should include

  • "both" - "sent to printer" should not open the report on the screen as it happens now
  • "mail_to" - we used this to send long running reports to the user or even external emails, once finished.
    external emails could be considered as a security risk.
    it's an easy way to forward reports
  • "save as" - especially if a working dav solution is available. this needs a better file naming mechanism using the selection criteria as part of the name.

(2)
for many reports it will not be possible to define the action_type on report level, but on print dialog level - Examples:

  • trial balance
  • general ledger - typically
    ** all accounts per year -> printer only
    ** to look up and print or not period moves of an account -> screen only

the running time - and hence the target - of the report depends on the selection criteria.

it would be great if all report dialogs would be able to grab the report target selection once the module is installed.

guewen added a commit to guewen/report-print-send that referenced this issue Jan 21, 2015
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
@guewen guewen self-assigned this Jan 21, 2015
Garamotte pushed a commit to subteno-it/report-print-send that referenced this issue Oct 3, 2017
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
gdgellatly pushed a commit to odoonz/report-print-send that referenced this issue Jan 30, 2019
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
gdgellatly pushed a commit to odoonz/report-print-send that referenced this issue May 12, 2019
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
gdgellatly pushed a commit to odoonz/report-print-send that referenced this issue May 12, 2019
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
schout-it pushed a commit to schout-it/report-print-send that referenced this issue Sep 30, 2019
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
schout-it pushed a commit to schout-it/report-print-send that referenced this issue Oct 14, 2019
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
AaronHForgeFlow pushed a commit to ForgeFlow/report-print-send that referenced this issue Apr 15, 2020
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
hildickethan pushed a commit to Studio73/report-print-send that referenced this issue Oct 15, 2020
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
alexis-via pushed a commit to akretion/report-print-send that referenced this issue Dec 15, 2020
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
CarlosRoca13 pushed a commit to Tecnativa/report-print-send that referenced this issue Dec 22, 2020
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
CarlosRoca13 pushed a commit to Tecnativa/report-print-send that referenced this issue Jan 12, 2021
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
BT-dmontull pushed a commit to BT-dmontull/report-print-send that referenced this issue Mar 3, 2022
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
flachica pushed a commit to flachica/report-print-send that referenced this issue Oct 1, 2022
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
glitchov pushed a commit to acsone/report-print-send that referenced this issue Dec 7, 2022
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
john-herholz-dt pushed a commit to DeineTuer-GmbH/OCA_report-print-send that referenced this issue Jan 17, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
john-herholz-dt pushed a commit to DeineTuer-GmbH/OCA_report-print-send that referenced this issue Mar 8, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
trisdoan pushed a commit to trisdoan/report-print-send that referenced this issue Oct 3, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
trisdoan pushed a commit to trisdoan/report-print-send that referenced this issue Oct 9, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
trisdoan pushed a commit to trisdoan/report-print-send that referenced this issue Oct 9, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
trisdoan pushed a commit to trisdoan/report-print-send that referenced this issue Oct 9, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
trisdoan pushed a commit to trisdoan/report-print-send that referenced this issue Oct 9, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
trisdoan pushed a commit to trisdoan/report-print-send that referenced this issue Oct 14, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
trisdoan pushed a commit to trisdoan/report-print-send that referenced this issue Oct 14, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
Kimkhoi3010 pushed a commit to Kimkhoi3010/report-print-send that referenced this issue Oct 15, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
trisdoan pushed a commit to trisdoan/report-print-send that referenced this issue Oct 28, 2024
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes OCA#16
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

4 participants