Commit Graph

253 Commits

Author SHA1 Message Date
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
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
Guewen Baconnier
8c1362ea63 Merge branch '7.0' into 8.0 2014-11-14 10:05:07 +01:00
Pedro M. Baeza
3013c91a3d Merge pull request #9 from numerigraphe/7.0-no-lock-in-update-1308635-ls
[IMP] remove useless locking from update()
2014-11-14 09:56:55 +01:00
Pedro M. Baeza
17ff2fff94 Merge pull request #10 from guewen/8.0-base-files
Update the build configuration
2014-11-04 16:08:19 +01:00
Guewen Baconnier
1560d85e85 Run tests with unit tests only
I think we don't need to run tests both separately and altogether
2014-11-04 10:52:11 +01:00
Guewen Baconnier
cf70d214af Use the same indentation of 2 spaces 2014-11-04 10:46:18 +01:00
Guewen Baconnier
a7ba3ec677 Use the env variable for the version 2014-11-04 10:42:24 +01:00
Guewen Baconnier
2fd5e42cdc travis_run_flake8 is deprecated 2014-11-04 10:41:09 +01:00
Guewen Baconnier
905a0702ee add UNIT_TEST 2014-11-04 10:40:36 +01:00
Guewen Baconnier
48d4aaa593 Update .travis.yml to the last quality tools 2014-11-04 10:32:34 +01:00
Guewen Baconnier
7182573522 .coveragerc is now generated automatically during the build 2014-11-04 10:28:59 +01:00
Guewen Baconnier
484a33e011 Merge remote-tracking branch 'origin/7.0'
Update from 7.0

Conflicts:
	README.md
2014-11-04 10:23:43 +01:00
Lionel Sausin
06f8bdf222 [IMP] remove useless locking from update()
Locking shouldn't be needed here because the data we read is immutable
2014-10-24 18:50:16 +02:00
Sandy
05f0807986 Merge pull request #8 from yvaucher/8.0-license
Add license
2014-07-07 11:30:32 -04:00
Sandy
a9ab12a542 Merge pull request #7 from yvaucher/7.0-license
Add license
2014-07-07 11:30:27 -04:00
Yannick Vaucher
d8e8285c3a Add license 2014-07-07 17:24:42 +02:00
Yannick Vaucher
caaeca4e46 Add license 2014-07-07 17:23:40 +02:00
Yannick Vaucher
679fbdcf3e Update .travis.yml 2014-07-07 15:53:57 +02:00
Yannick Vaucher
949b0c2efe Merge pull request #4 from bwrsandman/7.0_coverage_badge
Fix 7.0 coverage badge
2014-07-04 18:13:14 +02:00
Sandy Carter
72b3c25cc6 Fix 7.0 coverage badge 2014-07-04 11:42:31 -04:00
Yannick Vaucher
ad1d9fff4d Merge pull request #3 from yvaucher/8.0-unported
8.0 unported
2014-07-04 17:19:40 +02:00
Yannick Vaucher
ba2e892477 move modules in __unported__ for 8.0 2014-07-04 17:17:53 +02:00