Commit Graph

235 Commits

Author SHA1 Message Date
Yannick Vaucher
4da8b23b7c Merge pull request #51 from oihane/8.0-transifex
[IMP] updated travis and readme
2016-07-12 12:03:57 +02:00
oihane
624dda9cdf [IMP] updated travis and readme 2016-07-04 17:58:20 +02:00
OCA Git Bot
686fd0b335 [ADD] setup.py 2016-04-14 04:39:17 +02:00
Pedro M. Baeza
407b519a5d Merge pull request #47 from InteroTechnologies/8.0
FIX: print with copies and installed printer_tray module
2016-03-01 16:57:20 +01:00
Maik Steinfeld
7bee3c85e6 FIX: print with copies and installed printer_tray module
Added new Argument to printer_tray also.
2016-01-04 09:24:31 +01:00
Pedro M. Baeza
86e9e05060 Merge pull request #43 from RoelAdriaans-B-informed/8.0
[IMP] Soft fail on missing cups import
2015-12-10 12:49:21 +01:00
Roel Adriaans
8b7f592505 [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.
2015-12-10 12:29:02 +01:00
OCA Git Bot
4269bec82e [UPD] addons table in README.md 2015-11-25 02:33:37 +01:00
Yannick Vaucher
4c687d9f26 FIX typo in previous merge 2015-11-24 14:04:29 +01:00
Yannick Vaucher
92a75aae4b Merge branch '8.0-support-multiple-copies' of https://github.com/akretion/report-print-send into 8.0 2015-11-24 13:48:24 +01:00
Yannick Vaucher
f1566e5f8a Merge branch '8.0' of https://github.com/intero-chz/report-print-send into 8.0 2015-11-24 13:46:00 +01:00
Yannick Vaucher
e876db032e Merge branch 'fix_typo_printer_tray_id' of https://github.com/vrenaville/report-print-send into 8.0 2015-11-24 13:42:57 +01:00
Alexis de Lattre
a959de43c2 Add support for multiple copies 2015-11-02 22:49:28 +01:00
czoellner
03b026b133 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)
2015-10-25 12:14:52 +01:00
Stéphane Bidoul
763aa17969 [MOV] move addons out of __unported__ (they remain not installable) 2015-10-13 16:58:43 +02:00
vrenaville
9b74ccc77a [FIX] typo, tray_id doesn't exist only printer_tray_id exist on the object 2015-10-12 14:00:04 +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