Commit Graph

75 Commits

Author SHA1 Message Date
Guewen Baconnier
ebe52ef481 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.
2017-10-03 18:13:01 +02:00
Guewen Baconnier
7ac2564668 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.
2017-10-03 18:13:01 +02:00
Guewen Baconnier
39bd5e94e4 We need the report in print_document and print options (needed in
printer_tray)
2017-10-03 18:13:00 +02:00
Guewen Baconnier
ad5e8b6e46 missing api decorator 2017-10-03 18:13:00 +02:00
Guewen Baconnier
975afd7c72 Update translations, add a string to URI so it is uppercased 2017-10-03 18:12:59 +02:00
Guewen Baconnier
aecc0a5114 Improve form view, add search view for printers 2017-10-03 18:12:59 +02:00
Guewen Baconnier
e15d2672fe Update copyrights 2017-10-03 18:12:58 +02:00
Guewen Baconnier
3d89e22aeb Restore the print capability on deprecated reports 2017-10-03 18:12:58 +02:00
Guewen Baconnier
9c4ea8c10c Implements the print on the new 'report' model 2017-10-03 18:12:58 +02:00
Guewen Baconnier
87ae352f5a browse is called often enough to call the update routine (even too much) 2017-10-03 18:12:57 +02:00
Guewen Baconnier
8a80de3ced 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.
2017-10-03 18:12:57 +02:00
Guewen Baconnier
fbe8630323 Recursion when calling a method with old-style api signature from browse 2017-10-03 18:12:56 +02:00
Guewen Baconnier
242146bcc2 Better view for wizard 2017-10-03 18:12:56 +02:00
Guewen Baconnier
05982df305 Migrate wizard/update_printers.py to new API 2017-10-03 18:12:55 +02:00
Guewen Baconnier
fe3ab51f5a Migrate report_xml_action.py to new API 2017-10-03 18:12:55 +02:00
Guewen Baconnier
200527387c Migrate res_users.py to new API 2017-10-03 18:12:55 +02:00
Guewen Baconnier
ce0876ef9f Migrate printing.py to new API 2017-10-03 18:12:54 +02:00
Guewen Baconnier
f46ad66960 Migrate ir_report.py to new API 2017-10-03 18:12:54 +02:00
Guewen Baconnier
d02f5e616c base_calendar passed away 2017-10-03 18:12:53 +02:00
Guewen Baconnier
3f8838ccda Extract description of the module in README.RST 2017-10-03 18:12:53 +02:00
Guewen Baconnier
8bfbd12166 Set module installable 2017-10-03 18:12:52 +02:00
Guewen Baconnier
0f7bb5f8d6 Move base_report_to_printer to root from __unported__ 2017-10-03 18:12:52 +02:00
Yannick Vaucher
e49f662403 move modules in __unported__ for 8.0 2017-10-03 18:12:52 +02:00
Yannick Vaucher
c5b44f3521 set installable to false 2017-10-03 18:12:51 +02:00
Unknown
cf0e6704a2 Launchpad automatic translations update. 2017-10-03 18:12:51 +02:00
Lionel Sausin
489d419173 [IMP] Use short notation for browse and use pool[] instead of pool.get() as suggested by Pedro Manuel Baeza 2017-10-03 18:12:50 +02:00
Lionel Sausin
b0851162b2 [IMP] fix/improve printing preference UI 2017-10-03 18:12:50 +02:00
Lionel Sausin
7b226117d4 [FIX] the button 'set default' on printers did not work because the field was 'required' - this is deprecated on booleans in v7 2017-10-03 18:12:49 +02:00
Lionel Sausin
8f5b500f10 [FIX] user browse was incorrect and never returned records. Fix based on the patch from Egor Tsinko (etsinko) 2017-10-03 18:12:49 +02:00
Unknown
3e89077960 Launchpad automatic translations update. 2017-10-03 18:12:49 +02:00
Joel Grand-Guillaume
9f2c1df8b9 [FIX] Use explicit kwargs: context=context 2017-10-03 18:12:48 +02:00
Yannick Vaucher
d0eb93e592 [IMP] adding some explanation in description 2017-10-03 18:12:48 +02:00
Yannick Vaucher
a69abe5be0 [IMP] description add comment on update printers wizard 2017-10-03 18:12:47 +02:00
Yannick Vaucher
5d4581d93b [IMP] module desciption and remove AUTHORS.txt file to write contributors in __openerp__ 2017-10-03 18:12:44 +02:00
Yannick Vaucher
e080114b31 [IMP] update po files 2017-10-03 18:05:18 +02:00
Yannick Vaucher
f876224a1b [IMP] add external_dependencies 2017-10-03 18:05:18 +02:00
Yannick Vaucher
2e4ebc8486 [IMP] base_report_to_printer - split code in multiple files 2017-10-03 18:05:18 +02:00
Yannick Vaucher
c51ba5de1f [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. 2017-10-03 18:05:18 +02:00
Yannick Vaucher
78ef3fd528 [FIX] base_report_to_printer - restore error message as osv + propagate options 2017-10-03 18:05:18 +02:00
Yannick Vaucher
448ceb3c1e [FIX] base_report_to_printer - mistake in params of print_direct 2017-10-03 18:05:18 +02:00
Yannick Vaucher
a11af7292e [IMP] base_report_to_printer - pass report id instead of report key 2017-10-03 18:05:18 +02:00
Yannick Vaucher
b00c963cd7 [TYPO] 2017-10-03 18:05:18 +02:00
Yannick Vaucher
d1f3bd5c76 [FIX] base_report_to_printer - missing class call 2017-10-03 18:05:17 +02:00
Yannick Vaucher
6af98d2bff [IMP] base_report_to_printer - remove deprecated view type 2017-10-03 18:05:17 +02:00
Yannick Vaucher
083bc828e4 [IMP] base_report_to_printer - show field name in report and user views 2017-10-03 18:05:17 +02:00
Yannick Vaucher
42efe1559d [IMP] base_report_to_printer - retab xml files 2017-10-03 18:05:17 +02:00
Yannick Vaucher
63874cbb96 [IMP] base_report_to_printer - return browse record instead of string in behavior for printer 2017-10-03 18:05:17 +02:00
Yannick Vaucher
3878a868a3 [IMP] base_report_to_printer - remove uselsee context set 2017-10-03 18:05:17 +02:00
Yannick Vaucher
ec028b35f4 [FIX] base_report_to_printer - using system_name of printer instead of printer browse record 2017-10-03 18:05:17 +02:00
Yannick Vaucher
60d01e0862 [IMP] base_report_to_printer - use an action id in an action method instead of a report id makes more sens 2017-10-03 18:05:17 +02:00