Alexis de Lattre
73ee88eac4
Add support for multiple copies
2016-07-04 12:58:51 -07: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
Alexis de Lattre
7bac04b770
[FIX] Bug #19 avoid crash when using 'raw' option
2014-12-28 01:36:12 +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
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
435c7b7860
Migrate printing.py to new API
2014-11-17 13:15:02 +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
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
Yannick Vaucher
b9f003803e
[MRG] Simple split of code which was in a single file
2013-12-27 13:43:25 -05:00
Joel Grand-Guillaume
7539d8644f
[FIX] Use explicit kwargs: context=context
2013-12-20 15:07:09 +01:00
Yannick Vaucher
d4df635455
[IMP] base_report_to_printer - split code in multiple files
2013-10-02 14:08:48 +02:00
Yannick Vaucher
70a45dae60
[IMP] base_report_to_printer - remove osv.except_osv as it breaks the workflow and doesn't permits multiple report to be sent to the printer.
2013-10-02 11:27:43 +02:00
Yannick Vaucher
e99e95d14d
[FIX] base_report_to_printer - restore error message as osv + propagate options
2013-10-01 16:21:37 +02:00
Yannick Vaucher
f1173ee774
[FIX] base_report_to_printer - mistake in params of print_direct
2013-10-01 16:12:50 +02:00
Yannick Vaucher
d6c5097e6d
[IMP] base_report_to_printer - pass report id instead of report key
2013-10-01 15:45:37 +02:00
Yannick Vaucher
2bfc7b3e12
[TYPO]
2013-10-01 15:32:52 +02:00
Yannick Vaucher
b028900ccc
[FIX] base_report_to_printer - missing class call
2013-10-01 15:30:10 +02:00
Yannick Vaucher
08d0ea25ba
[IMP] base_report_to_printer - return browse record instead of string in behavior for printer
2013-10-01 14:19:52 +02:00
Yannick Vaucher
74260645ea
[IMP] base_report_to_printer - remove uselsee context set
2013-10-01 13:29:25 +02:00
Yannick Vaucher
0e14c7e16f
[FIX] base_report_to_printer - using system_name of printer instead of printer browse record
2013-10-01 13:25:20 +02:00
Yannick Vaucher
23ec86cdc4
[IMP] base_report_to_printer - use an action id in an action method instead of a report id makes more sens
2013-10-01 13:24:10 +02:00
Yannick Vaucher
bb09482adb
[IMP] base_report_to_printer - add report_id on print_direct
2013-10-01 12:46:20 +02:00
Yannick Vaucher
8169f63667
[IMP] base_report_to_printer - replace lpr by use of pycups
2013-09-30 17:31:48 +02:00
Yannick Vaucher
c2a802b4cf
[TYPO]
2013-09-30 14:08:51 +02:00
Yannick Vaucher
b22d7b84a6
[IMP] base_report_to_printer - simplify calls on class
2013-09-30 13:46:04 +02:00
Yannick Vaucher
a2ce67027f
[IMP] base_report_to_printer - remove class call
2013-09-30 13:05:10 +02:00
Yannick Vaucher
a11c2dadeb
[IMP] base_report_to_printer - clean imports
2013-09-30 13:03:49 +02:00
Yannick Vaucher
c22ac5a41b
[IMP] base_report_to_printer - remove class calls and use orm.Model and orm.TransientModel instead of osv aliases
2013-09-30 11:56:20 +02:00
Yannick Vaucher
8226998b0a
[IMP] base_report_to_printer - retab and clean extra spaces
2013-09-30 11:50:14 +02:00
Andrew Schrafel
d9201c1632
base_report_to_printer V7 upgrade
2013-03-14 22:30:25 -04:00
Lorenzo Battistini
c98db4a9f6
[FIX] isinstance(printer, (str,unicode)):
...
replaced by isinstance(printer, basestring)
2012-12-06 16:09:06 +01:00
Lorenzo Battistini
819e38b62e
[FIX] using logging
2012-12-06 16:01:59 +01:00
Lorenzo Battistini
244a5a3a61
[FIX] context=None
2012-12-06 15:52:32 +01:00
Lorenzo Battistini
457d20b349
[fix] get_default return value
2012-12-06 15:49:31 +01:00
Lorenzo Battistini
f94d0e30ea
[FIX] print_direct return value
2012-12-06 15:48:47 +01:00