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
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
d329abaaf4
[IMP] adding some explanation in description
2013-12-03 12:03:26 +01:00
Yannick Vaucher
922ca2b258
[IMP] description add comment on update printers wizard
2013-12-03 11:52:31 +01:00
Yannick Vaucher
caa34e7003
[IMP] module desciption and remove AUTHORS.txt file to write contributors in __openerp__
2013-12-03 11:36:39 +01:00
Yannick Vaucher
c8614c6db7
[IMP] update po files
2013-11-05 16:33:34 +01:00
Yannick Vaucher
a370f43228
[IMP] add external_dependencies
2013-11-05 14:14:19 +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