Commit Graph

32 Commits

Author SHA1 Message Date
Francesco Foresti
7f4fb18130 Translated using Weblate (Italian)
Currently translated at 20.1% (33 of 164 strings)

Translation: report-print-send-16.0/report-print-send-16.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-16-0/report-print-send-16-0-base_report_to_printer/it/
2023-07-12 16:11:51 +00:00
Francesco Foresti
f0a04820d9 Translated using Weblate (Italian)
Currently translated at 20.1% (33 of 164 strings)

Translation: report-print-send-16.0/report-print-send-16.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-16-0/report-print-send-16-0-base_report_to_printer/it/
2023-06-22 19:09:48 +00:00
Weblate
d4437a5f10 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: report-print-send-16.0/report-print-send-16.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-16-0/report-print-send-16-0-base_report_to_printer/
2022-12-21 10:08:01 +00:00
oca-ci
3019c9e503 [UPD] Update base_report_to_printer.pot 2022-12-21 10:05:41 +00:00
Weblate
f1c26b8953 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: report-print-send-16.0/report-print-send-16.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-16-0/report-print-send-16-0-base_report_to_printer/
2022-12-14 11:52:52 +00:00
oca-ci
a053b2bf57 [UPD] Update base_report_to_printer.pot 2022-12-14 07:54:48 +00:00
Weblate
1b03a06d95 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: report-print-send-15.0/report-print-send-15.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-15-0/report-print-send-15-0-base_report_to_printer/
2022-12-07 09:31:49 +01:00
oca-ci
d55285333e [UPD] Update base_report_to_printer.pot 2022-12-07 09:31:49 +01:00
OCA Transbot
714074af99 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: report-print-send-14.0/report-print-send-14.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-14-0/report-print-send-14-0-base_report_to_printer/
2022-12-07 09:31:49 +01:00
oca-travis
2aa08faafe [UPD] Update base_report_to_printer.pot 2022-12-07 09:31:49 +01:00
OCA Transbot
d8dc5a3d3a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: report-print-send-14.0/report-print-send-14.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-14-0/report-print-send-14-0-base_report_to_printer/
2022-12-07 09:31:49 +01:00
oca-travis
16b1bc2db1 [UPD] Update base_report_to_printer.pot 2022-12-07 09:31:49 +01:00
Simon S
6d84cd1cdf Translated using Weblate (Swedish)
Currently translated at 95.0% (134 of 141 strings)

Translation: report-print-send-14.0/report-print-send-14.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-14-0/report-print-send-14-0-base_report_to_printer/sv/
2022-12-07 09:31:49 +01:00
Simon S
64853f4a5b Added translation using Weblate (Swedish) 2022-12-07 09:31:49 +01:00
oca-travis
843b047c6f [UPD] Update base_report_to_printer.pot 2022-12-07 09:31:49 +01:00
Alexis de Lattre
776b2b426e [MIG] base_report_to_printer: Migration to v14 2022-12-07 09:31:49 +01:00
Jaime Arroyo
c07cae1894 [IMP] base_report_to_printer: archive printers 2022-12-07 09:31:49 +01:00
Ignacio Buioli
f999660bed Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (141 of 141 strings)

Translation: report-print-send-13.0/report-print-send-13.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-13-0/report-print-send-13-0-base_report_to_printer/es_AR/
2022-12-07 09:31:49 +01:00
Ignacio Buioli
cd9f5a5f72 Added translation using Weblate (Spanish (Argentina)) 2022-12-07 09:31:49 +01:00
Florian Pose
a72cf155c1 Added job state 'cups-filter-crashed'.
Missing state caused periodic backtraces in the logs.
2022-12-07 09:31:49 +01:00
Rod Schouteden
1a6f6d9f3d Update base_report_to_printer/__manifest__.py
[13.0] [MIG] set correct website in manifest

Co-Authored-By: Raf Ven <raf.ven@dynapps.be>
2022-12-07 09:31:48 +01:00
Graeme Gellatly
4cd58f2b26 [WIP] Migrate base_report_to_printer to V12 2022-12-07 09:31:48 +01:00
Enric Tobella
841f1833da Translated using Weblate (Spanish)
Currently translated at 99.3% (139 of 140 strings)

Translation: report-print-send-11.0/report-print-send-11.0-base_report_to_printer
Translate-URL: https://translation.odoo-community.org/projects/report-print-send-11-0/report-print-send-11-0-base_report_to_printer/es/
2022-12-07 09:31:48 +01:00
Enric Tobella
8e14f001d4 [FIX] missing super declaration 2022-12-07 09:31:48 +01:00
Sylvain GARANCHER
4ae97488a2 [FIX] Allow to generate printing options without a report 2022-12-07 09:31:48 +01:00
Jairo Llopis
59e5d797fa [FIX] base_report_to_printer: Stateless tests (#123)
If the test was run in a database with the `account` module installed, they were failing for 2 reasons:

- It was searching for the first report it could find, with the first 5 records to report. This made it load the `account.report_agedpartnerbalance` report, which caused a fake `TypeError: 'NoneType' object has no attribute '__getitem__'` error.
- It was running tests without loading the full module graph, thus not getting the default value for the new required `invoice_warn` field.

Now tests are run in `post_install` mode to load full module graph, and they use stateless data.
2022-12-07 09:31:48 +01:00
Graeme Gellatly
6b5a56e12d [WIP] Commit before rebase on latest #109 for user and view updates
Migration of printer_tray to v11 and integration with base_report_to_printer
2022-12-07 09:31:48 +01:00
Sylvain GARANCHER
44f6d9d82b [MIG] base_report_to_printer: Migrate to v11.0 2022-12-07 09:31:48 +01:00
Sylvain GARANCHER
de1c0f8846 [FIX] base_report_to_printer: A button method should be @api.multi 2022-12-07 09:31:48 +01:00
Dave Lasley
2150beb731 [MIG] base_report_to_printer: Upgrade to v9 2022-12-07 09:31:48 +01:00
Guewen Baconnier
808b77f5a5 Do no longer returns a PDF when a report is printed
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 #16
2022-12-07 09:31:48 +01:00
Guewen Baconnier
989d8357af base_calendar passed away
Migrate ir_report.py to new API

Migrate printing.py to new API

Migrate res_users.py to new API

Migrate report_xml_action.py to new API

Migrate wizard/update_printers.py to new API

Better view for wizard

Recursion when calling a method with old-style api signature from browse

Remove the Lock because it is useless on multiprocess

Replace it by a database lock so the different processes are
all aware of the lock and the last update timestamp.

browse is called often enough to call the update routine (even too much)

Implements the print on the new 'report' model

Restore the print capability on deprecated reports

Update copyrights

Improve form view, add search view for printers

Update translations, add a string to URI so it is uppercased

missing api decorator

We need the report in print_document and print options (needed in
printer_tray)

Move the 'skip_update' right in the browse, it prevents a loop

See https://github.com/odoo/odoo/issues/3644

Also, it helps to have the value set/read in context close to each
other.

Avoid to hits the database too many times to check if the list of
printers needs to be refreshed.

Keep the last update datetime in cache and invalidate this datetime if is
is older than POLL_INTERVAL.  Thus, one process won't hit the DB more
than 1 time every POLL_INTERVAL (10 seconds currently) to check if it
needs to update the list.

Refresh the list of printers every 15 seconds instead of 10

Extract a method so it will be easier to override in printer_tray

Error on installation of the module

Invalidate the cache when the table is created so the table_exists()
method returns a fresh value after creation of the table

Use a cron instead of threads to update printers status

The implementation with threads was blocking the loading of the
server in multiprocess.  Using a cron will lower the frequency of
the updates but at least it is simple and reliable.

Fixes #14

Do not write the printer status if it has not changed

Avoid unnecessary UPDATE every minute

Clean the XML file (remove eval, reindent)

Give access to models to all users for reading

So they are able to print
2022-12-07 09:31:48 +01:00