Guewen Baconnier
184cf38716
Updated translations
2015-01-21 15:49:35 +01:00
Guewen Baconnier
8344cca443
Raise an error if no printer is configured
2015-01-21 15:39:51 +01:00
Guewen Baconnier
22cde58f0e
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
2015-01-21 15:39:41 +01:00
Alexis de Lattre
f08023228f
Add CUPS_HOST in more debug logs
2015-01-14 10:11:06 +01:00
Alexis de Lattre
486d8d859e
base_report_to_printer: add support for remote CUPS server (not just localhost)
...
More logging and better error handling
2015-01-08 21:24:00 +01:00
Guewen Baconnier
c9669f93df
Merge pull request #21 from akretion/8.0-auto-add-admin-to-print-group-v2
...
[Usability] Auto-add Administrator user to the Print group
2015-01-05 09:26:53 +01:00
Guewen Baconnier
43ccfd3e61
Merge pull request #20 from akretion/8.0-fix-raw-bug-19
...
[FIX] Bug #19 avoid crash when using 'raw' option
2015-01-05 09:25:40 +01:00
Alexis de Lattre
aba746424d
[Usability] Auto-add Administrator user to the Print group
...
Make XML code more readable
2014-12-29 09:55:31 +01:00
Alexis de Lattre
7bac04b770
[FIX] Bug #19 avoid crash when using 'raw' option
2014-12-28 01:36:12 +01:00
Guewen Baconnier
b5dbd020a5
Give access to models to all users for reading
...
So they are able to print
2014-12-19 15:13:31 +01:00
Guewen Baconnier
09e9cbee52
Clean the XML file (remove eval, reindent)
2014-12-19 15:09:07 +01:00
Guewen Baconnier
2b5af7e49e
Do not write the printer status if it has not changed
...
Avoid unnecessary UPDATE every minute
2014-11-20 08:49:40 +01:00
Guewen Baconnier
2a2caedd17
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
2014-11-20 08:47:07 +01:00
Guewen Baconnier
de1360f2e4
Invalidate the cache when the table is created so the table_exists()
...
method returns a fresh value after creation of the table
2014-11-18 11:54:37 +01:00
Guewen Baconnier
2cc8ae8162
Error on installation of the module
2014-11-18 11:04:30 +01:00
Guewen Baconnier
caa9edb4e8
Extract a method so it will be easier to override in printer_tray
2014-11-17 16:57:05 +01:00
Guewen Baconnier
5805a6f9c4
Refresh the list of printers every 15 seconds instead of 10
2014-11-17 16:09:53 +01:00
Guewen Baconnier
3b63ab2648
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.
2014-11-17 16:09:53 +01:00
Guewen Baconnier
66a47f1826
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.
2014-11-17 15:26:10 +01:00
Guewen Baconnier
00fbd09338
We need the report in print_document and print options (needed in
...
printer_tray)
2014-11-17 14:38:34 +01:00
Guewen Baconnier
fa77924912
missing api decorator
2014-11-17 14:20:56 +01:00
Guewen Baconnier
e8536d4c95
Update translations, add a string to URI so it is uppercased
2014-11-17 14:00:54 +01:00
Guewen Baconnier
b7e1303275
Improve form view, add search view for printers
2014-11-17 13:15:03 +01:00
Guewen Baconnier
cbe238dc4d
Update copyrights
2014-11-17 13:15:03 +01:00
Guewen Baconnier
e289ebe2c7
Restore the print capability on deprecated reports
2014-11-17 13:15:03 +01:00
Guewen Baconnier
aa22f62bbb
Implements the print on the new 'report' model
2014-11-17 13:15:03 +01:00
Guewen Baconnier
838c6693f5
browse is called often enough to call the update routine (even too much)
2014-11-17 13:15:03 +01:00
Guewen Baconnier
d474edc8e1
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.
2014-11-17 13:15:03 +01:00
Guewen Baconnier
fcafe351d8
Recursion when calling a method with old-style api signature from browse
2014-11-17 13:15:03 +01:00
Guewen Baconnier
5232a64d24
Better view for wizard
2014-11-17 13:15:03 +01:00
Guewen Baconnier
c838c1eae8
Migrate wizard/update_printers.py to new API
2014-11-17 13:15:03 +01:00
Guewen Baconnier
7da56f43c5
Migrate report_xml_action.py to new API
2014-11-17 13:15:02 +01:00
Guewen Baconnier
03570cbc0e
Migrate res_users.py to new API
2014-11-17 13:15:02 +01:00
Guewen Baconnier
435c7b7860
Migrate printing.py to new API
2014-11-17 13:15:02 +01:00
Guewen Baconnier
91162b1a6c
Migrate ir_report.py to new API
2014-11-14 11:03:37 +01:00
Guewen Baconnier
934b1abda9
base_calendar passed away
2014-11-14 11:03:14 +01:00
Guewen Baconnier
3c65ba89a4
Extract description of the module in README.RST
2014-11-14 11:03:14 +01:00
Guewen Baconnier
20757270bc
Set module installable
2014-11-14 11:03:14 +01:00
Guewen Baconnier
2201af66b8
Move base_report_to_printer to root from __unported__
2014-11-14 11:03:14 +01:00
Yannick Vaucher
ba2e892477
move modules in __unported__ for 8.0
2014-07-04 17:17:53 +02:00
Yannick Vaucher
eae8ee6bcf
set installable to false
2014-07-04 17:16:51 +02:00
Lionel Sausin
5d798d3a4d
[IMP] fix/improve printing preference UI
2014-07-02 19:15:25 +02:00
Lionel Sausin
17e6538a89
[IMP] fix/improve printing preference UI
2014-05-15 14:07:12 +02:00
Launchpad Translations on behalf of report-print-send-core-editors
f1db480f7d
Launchpad automatic translations update.
2014-05-06 07:28:56 +00:00
Numerigraphe - Lionel Sausin
585a10e9d1
[FIX] user browse was incorrect and never returned records. Fix based on the patch from Egor Tsinko (etsinko)
2014-04-28 10:52:42 +02:00
Lionel Sausin
efc939ffd4
[IMP] Use short notation for browse and use pool[] instead of pool.get() as suggested by Pedro Manuel Baeza
2014-04-17 18:34:39 +02:00
Lionel Sausin
e444a1b516
[IMP] fix/improve printing preference UI
2014-04-17 18:07:13 +02:00
Lionel Sausin
39864b8c88
[FIX] the button 'set default' on printers did not work because the field was 'required' - this is deprecated on booleans in v7
2014-04-16 17:12:59 +02:00
Lionel Sausin
7409a95315
[FIX] user browse was incorrect and never returned records. Fix based on the patch from Egor Tsinko (etsinko)
2014-04-16 17:04:07 +02:00
Launchpad Translations on behalf of report-print-send-core-editors
fb1d0a5256
Launchpad automatic translations update.
2014-02-26 07:32:32 +00:00