Commit Graph

278 Commits

Author SHA1 Message Date
Roel Adriaans
52e1aa44ee [IMP] Soft fail on missing cups import
cups is an external dependency, if it is not installed Odoo will not start.
OCA guidelines specify guidelines for External dependencies, code is from there.
2016-07-04 12:58:51 -07:00
Yannick Vaucher
a0d1438b0e Merge branch '8.0' of https://github.com/intero-chz/report-print-send into 8.0 2016-07-04 12:58:51 -07:00
Alexis de Lattre
73ee88eac4 Add support for multiple copies 2016-07-04 12:58:51 -07:00
czoellner
c5060c992f pass context to printer to use it for example in print_options()
* context was lost while getting report
* now it will be passed using with_context
* could be used for print_options (example: pass copies amount for
productlabals)
2016-07-04 12:58:51 -07:00
OCA Git Bot
379df2440d [ADD] setup.py 2016-04-14 04:46:11 +02:00
Stéphane Bidoul
69d7c97329 [UPD] addons table in README.md 2015-10-14 09:57:36 +02:00
Pedro M. Baeza
afd11950e4 [MIG] Update metafiles 2015-10-14 03:31:57 +02:00
Pedro M. Baeza
99ec84b921 [MIG] Make modules uninstallable 2015-10-14 03:31:56 +02:00
Stéphane Bidoul
763aa17969 [MOV] move addons out of __unported__ (they remain not installable) 2015-10-13 16:58:43 +02:00
Stéphane Bidoul
197fdfd9c3 [UPD] prefix versions with 8.0 2015-10-09 10:02:55 +02:00
Stéphane Bidoul
53116da542 [ADD] addons table in README.md 2015-09-23 16:27:29 +02:00
Pedro M. Baeza
833b195632 Merge pull request #32 from yvaucher/8.0-fix-pep8
[PEP8]
2015-08-18 19:27:17 +02:00
Yannick Vaucher
16811b2b2f [PEP8] 2015-08-18 15:04:42 +02:00
Alexandre Fayolle
4d98885fb4 Update travis configuration
use sudo: false to enable container build
use cache: pip to cache pip packages
2015-07-24 23:34:14 +02:00
Guewen Baconnier
766fd39405 Merge pull request #30 from vrenaville/add_module_installed
[FIX] test if the module is installed before monkey patching
2015-06-16 10:39:22 +02:00
vrenaville
fad55ba364 [FIX] test if the module is installed before monkey patching 2015-06-15 10:11:18 +02:00
Yannick Vaucher
4a517aa970 Merge pull request #29 from yvaucher/8.0-add-bug-tracker-link
Add bug tracker link on README.rst
2015-06-11 15:45:10 +02:00
Yannick Vaucher
42464bea41 Add bug tracker link on README.rst 2015-05-22 19:45:21 +02:00
Pedro M. Baeza
6c8c67e947 Merge pull request #28 from acsone/8.0-fix-get-pdf-v8-api-amu
[8.0] [FIX]: change signature of methods print_document & get_pdf for 8.0 api
2015-05-21 11:50:16 +02:00
Anthony Muschang
ab8fe22b47 [FIX] base_report_to_printer: make print_document callable from 8.0 api 2015-05-21 10:12:16 +02:00
Anthony Muschang
43f3ba36f5 [FIX] base_report_to_printer: make get_pdf callable from 8.0 api 2015-05-20 01:08:46 +02:00
Alexandre Fayolle
acad492643 Update travis configuration
Follow OCA/maintainer-quality-tools#187 and use addons/apt/package directive to
install our build dependencies. This allows using container based Travis builds
(which should be faster).
2015-05-14 22:14:47 +02:00
Alexandre Fayolle
6deacbe044 don't use travis container-based infrastructure 2015-03-27 16:21:13 +01:00
Guewen Baconnier
ffa54b375e Merge pull-request #25 from nbessi:fix_mro_issue
Compatibility fix for report with custom parser

By calling super.get_pdf in print_document we can encounter trouble with MRO resolution
that prevent custom report parser (e.g. override of get_pdf) to be called.

The fix consist of not calling super and prevent multiple call to 'printer.print_document'
2015-03-20 16:50:40 +01:00
Nicolas Bessi
9e3b34b60c Improve bloated condition test 2015-03-20 16:49:57 +01:00
Guewen Baconnier
68454324c6 dict.copy() is more efficient than calling dict 2015-03-20 16:49:57 +01:00
Guewen Baconnier
e50efff224 Vague method name, put the predicate method closer to its caller 2015-03-20 16:49:57 +01:00
Guewen Baconnier
a4fe4b0547 Past tense is confusing 2015-03-20 16:49:57 +01:00
Guewen Baconnier
3159f3fa6d The alteration of the context has no effect 2015-03-20 16:49:57 +01:00
Nicolas Bessi
cd8455e287 Fix set the skip directive in context
instead of a faulty return
2015-03-20 16:49:57 +01:00
Nicolas Bessi
6934e02fa5 Compatibility fix for report with custom parser
By calling `super.get_pdf` in print_document we can encounter trouble with MRO resolution
that prevent custom report parser (e.g. override of `get_pdf`) to be called.

The fix consist of not calling `super` and prevent multiple call to 'printer.print_document'
2015-03-20 16:49:57 +01:00
Alexandre Fayolle
166aab1d54 Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
2015-03-02 17:27:33 +01:00
Pedro M. Baeza
e3e36596c2 Merge pull request #27 from yvaucher/8.0-add-license-key
Add license key in __openerp__.py
2015-02-06 20:12:24 +01:00
Yannick Vaucher
39ae29d6bc Add license key in __openerp__.py 2015-02-06 16:04:09 +01:00
Pedro M. Baeza
4fd3bb67a7 Merge pull request #23 from guewen/base_report_to_printer-no-pdf
Do no longer returns a PDF when a report is printed
2015-01-26 21:43:26 +01:00
Guewen Baconnier
5cc2eec8d6 When get_pdf has no printer, just create the pdf file
And do not print anything, instead of raising an error.
2015-01-26 11:55:26 +01:00
Guewen Baconnier
4c803da0e2 Add a limitation in the readme
Corrected some typos at the same time
2015-01-21 16:02:34 +01:00
Guewen Baconnier
184cf38716 Updated translations 2015-01-21 15:49:35 +01:00
Guewen Baconnier
8344cca443 Raise an error if no printer is configured 2015-01-21 15:39:51 +01:00
Guewen Baconnier
22cde58f0e Do no longer returns a PDF when a report is printed
Instead, a notification is displayed to the user.
When report.get_pdf() is called on a report that must be printer,
it will print the report *and* returns the pdf, thus code that
calls directly report.get_pdf() will print the pdf on the printer
as expected.

Fixes #16
2015-01-21 15:39:41 +01:00
Pedro M. Baeza
2f71ee7fac Merge pull request #13 from guewen/8.0-printer_tray-migr
Migration of printer_tray to 8.0
2015-01-20 11:57:40 +01:00
Guewen Baconnier
cacc5423f6 Reset the printer's tray when the printer is changed 2015-01-20 11:44:13 +01:00
Guewen Baconnier
cfdfc8e3a2 Update the description with the OCA template 2015-01-20 11:00:44 +01:00
Guewen Baconnier
80b734b3d9 Add the trays in printing.report.xml.action view
So they can be configured per user and per report
2015-01-20 09:34:09 +01:00
Yannick Vaucher
3cd03deb4d Merge pull request #22 from akretion/8.0-cups-server-configurable
base_report_to_printer: add support for remote CUPS server (not just localhost)
2015-01-15 10:26:40 +01: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
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