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
Pedro M. Baeza
7cc0e4eb27
Merge pull request #18 from guewen/base_report_to_printer-security
...
base_report_to_printer: missing security
2014-12-29 09:43:07 +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
97f11a20dc
Merge pull request #17 from yvaucher/8.0-separate-lint
...
Separated Lint tests
2014-12-18 07:37:07 +01:00
Leonardo Pistone
aaa6fc50ef
Merge pull request #15 from guewen/base_report_to_printer-cron-issue14
...
Use a cron instead of threads to update printers status
2014-12-17 12:31:33 +01:00
Yannick Vaucher
b261688892
Separated Lint tests
2014-12-16 11:18:40 +01:00
Guewen Baconnier
a4d58ea62c
Security file was not loaded
2014-12-09 14:25:58 +01:00
Guewen Baconnier
d3b0c93af4
Remove the PPD file once read, otherwise they accumulate
2014-12-09 14:25:35 +01:00
Guewen Baconnier
861d8d4fc9
Missing import
2014-12-09 14:25:35 +01:00
Guewen Baconnier
ca856016d5
Wrong column name
2014-12-09 14:25:35 +01:00
Guewen Baconnier
9b763de087
Updated translations
2014-12-09 14:25:35 +01:00
Guewen Baconnier
b7077910f4
Add the printer tray choice in the 'My preferences' popup
2014-12-09 14:25:35 +01:00
Guewen Baconnier
fb01704296
add trays in printers view
2014-12-09 14:25:35 +01:00
Guewen Baconnier
2da9855765
unused import
2014-12-09 14:25:35 +01:00
Guewen Baconnier
57b91300a2
Update the trays from cups, use the new extracted methods in
...
base_report_to_printer
2014-12-09 14:25:35 +01:00
Guewen Baconnier
aef795d295
Started to migrate printing.printer to the new API
2014-12-09 14:25:35 +01:00
Guewen Baconnier
3ef44329da
new api for 'printing.report.xml.action'
2014-12-09 14:25:35 +01:00
Guewen Baconnier
6d3c5c84aa
new api for printing.tray
2014-12-09 14:25:35 +01:00
Guewen Baconnier
0a5971eab7
new api for res.users
2014-12-09 14:25:35 +01:00
Guewen Baconnier
49a7599aed
print_options is now in printing, new api for ir.actions.report.xml
2014-12-09 14:25:35 +01:00
Guewen Baconnier
e9adf1b867
base_report_assembler seems not to be a dependency for printer_tray
2014-12-09 14:25:35 +01:00
Guewen Baconnier
b6fea158c3
Extract the module's description in a REAME.rst file
2014-12-09 14:25:35 +01:00
Guewen Baconnier
fc884fef23
Set printer_tray to installable
2014-12-09 14:25:34 +01:00
Guewen Baconnier
ab7ccba26a
Moved printer_tray from __unported__ to root folder
2014-12-09 14:25:34 +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
Pedro M. Baeza
31c61a8153
Merge pull request #12 from guewen/8.0-base_report_to_printer-migr
...
Migration of base_report_to_printer
2014-11-19 22:46:31 +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