Commit Graph

39 Commits

Author SHA1 Message Date
mymage
4f77ec14d4 Translated using Weblate (Italian)
Currently translated at 100.0% (164 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/
2024-10-28 16:34:29 +07:00
mymage
efc4fffb0e Translated using Weblate (Italian)
Currently translated at 100.0% (164 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/
2024-10-28 16:34:29 +07:00
mymage
4174621b6e Translated using Weblate (Italian)
Currently translated at 76.2% (125 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/
2024-10-28 16:34:29 +07:00
Alexis de Lattre
115454652a Translated using Weblate (French)
Currently translated at 100.0% (164 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/fr/
2024-10-28 16:34:28 +07:00
Michele
4c535ff504 Fix for unexpected 'nombre' on base_report_to_printer/i18n/es.po 2024-10-28 16:34:28 +07:00
Ivorra78
caca7b99db Translated using Weblate (Spanish)
Currently translated at 100.0% (164 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/es/
2024-10-28 16:34:28 +07:00
mymage
c378a50c94 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/
2024-10-28 16:34:28 +07:00
Francesco Foresti
067bf96cae 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/
2024-10-28 16:34:28 +07:00
Francesco Foresti
58ca3f2f9a 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/
2024-10-28 16:34:28 +07:00
Weblate
72a1b593d6 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/
2024-10-28 16:34:28 +07:00
oca-ci
32ccb7390e [UPD] Update base_report_to_printer.pot 2024-10-28 16:34:28 +07:00
Weblate
0072af5953 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/
2024-10-28 16:34:28 +07:00
oca-ci
794f3c6484 [UPD] Update base_report_to_printer.pot 2024-10-28 16:34:28 +07:00
Weblate
97f31f20b1 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/
2024-10-28 16:34:28 +07:00
oca-ci
167048c345 [UPD] Update base_report_to_printer.pot 2024-10-28 16:34:28 +07:00
OCA Transbot
af8405637f 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/
2024-10-28 16:34:28 +07:00
oca-travis
892af97ea5 [UPD] Update base_report_to_printer.pot 2024-10-28 16:34:28 +07:00
OCA Transbot
ea8cb069f9 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/
2024-10-28 16:34:28 +07:00
oca-travis
b6aacff277 [UPD] Update base_report_to_printer.pot 2024-10-28 16:34:28 +07:00
Simon S
7860a7e080 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/
2024-10-28 16:34:28 +07:00
Simon S
54ec6b0915 Added translation using Weblate (Swedish) 2024-10-28 16:34:28 +07:00
oca-travis
8d97538f9a [UPD] Update base_report_to_printer.pot 2024-10-28 16:34:28 +07:00
Alexis de Lattre
b8b6f60322 [MIG] base_report_to_printer: Migration to v14 2024-10-28 16:34:28 +07:00
Jaime Arroyo
0700b15211 [IMP] base_report_to_printer: archive printers 2024-10-28 16:34:28 +07:00
Ignacio Buioli
21e97c0da0 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/
2024-10-28 16:34:28 +07:00
Ignacio Buioli
7bab9902bf Added translation using Weblate (Spanish (Argentina)) 2024-10-28 16:34:28 +07:00
Florian Pose
c6df932c5d Added job state 'cups-filter-crashed'.
Missing state caused periodic backtraces in the logs.
2024-10-28 16:34:28 +07:00
Rod Schouteden
76b926068e Update base_report_to_printer/__manifest__.py
[13.0] [MIG] set correct website in manifest

Co-Authored-By: Raf Ven <raf.ven@dynapps.be>
2024-10-28 16:34:28 +07:00
Graeme Gellatly
12c5421f31 [WIP] Migrate base_report_to_printer to V12 2024-10-28 16:34:28 +07:00
Enric Tobella
a64e5a44a3 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/
2024-10-28 16:34:28 +07:00
Enric Tobella
bbc99a7d14 [FIX] missing super declaration 2024-10-28 16:34:28 +07:00
Sylvain GARANCHER
d0f340c592 [FIX] Allow to generate printing options without a report 2024-10-28 16:34:28 +07:00
Jairo Llopis
c7a3ec53ee [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.
2024-10-28 16:34:28 +07:00
Graeme Gellatly
98feb8aac2 [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
2024-10-28 16:34:28 +07:00
Sylvain GARANCHER
6380ffbb37 [MIG] base_report_to_printer: Migrate to v11.0 2024-10-28 16:34:28 +07:00
Sylvain GARANCHER
fbca73e1f6 [FIX] base_report_to_printer: A button method should be @api.multi 2024-10-28 16:34:28 +07:00
Dave Lasley
49fdb7f19a [MIG] base_report_to_printer: Upgrade to v9 2024-10-28 16:34:28 +07:00
Guewen Baconnier
c2823850c5 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
2024-10-28 16:34:28 +07:00
Guewen Baconnier
acedcfeb85 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
2024-10-28 16:34:28 +07:00