Commit Graph
203 Commits
Author SHA1 Message Date
P. Christeas 75db037508 [MERGE] EAN13 and QR support in RML, simpler indices on workflows, cleanup of ir_ui_menu.py
lp bug: https://launchpad.net/bugs/532559 fixed

bzr revid: odo@openerp.com-20101220175802-z4yh5dlad0oob5hm
2010-12-20 18:58:02 +01:00
P. Christeas aaac6a602f trml2pdf: Support EAN13 and QRcode barcodes, fix unicode warning [Bug 532559]
Since ReportLab supports them, include it in our list, too.
Also, fix the warning that has been appearing in buildbot, about
"code128.py:257: UnicodeWarning ..."
The issue is that string-capable barcodes will only support ASCII chars,
not Unicode. So, cast to str() and let ReportLab's code be happy.

Code was based on patch by: Omar (Pexego), on 22-06-2010

bzr revid: p_christ@hol.gr-20101219201127-mmrsn206a9vldr43
2010-12-19 22:11:27 +02:00
P. Christeas 5c6bd686ab reports: fix some default args, import message, empty translations
bzr revid: p_christ@hol.gr-20101214162826-79ppx7qw23ag3qx0
2010-12-14 18:28:26 +02:00
Olivier Dony 77134eca55 [FIX] report.trml2pdf: fix path to locate <images> in RML
lp bug: https://launchpad.net/bugs/586066 fixed

bzr revid: odo@openerp.com-20101206124052-01bp2395vxaenzry
2010-12-06 13:40:52 +01:00
Olivier Dony 988cd41e54 [MERGE] fix for search view bug 681479 + improved support for images in RML, both courtesy of P. Christeas
lp bug: https://launchpad.net/bugs/681479 fixed

bzr revid: odo@openerp.com-20101206121935-e5xkk685rj2e12ev
2010-12-06 13:19:35 +01:00
P. Christeas dd0510428f sql_db: only do frame inspection when debugging
This affects the "Cursor not closed explicitly..." message.
The message is at a "warning" level, but the frame inspection added
some expensive overhead to each cursor open. So, avoid that unless we
are at debug mode.

Conflicts:

	bin/sql_db.py

bzr revid: p_christ@hol.gr-20101203164553-vudqkoqb0hpfsocj
2010-12-03 18:45:53 +02:00
Olivier Dony 959d4f962e [IMP] report,fonts: fallback to default Adobe fonts when font is missing - pending improvement
We should maybe find a way to let users use their own fonts. At the moment only the 14 default Adobe fonts 
(cfr reportlab.reportbase.pdfmetrics.standardFonts) + the ones from customfonts.py will work...
Also got rid of the mapping for ZapfDingBast, as it is a symbol font that cannot be mapped to a regular one.

bzr revid: odo@openerp.com-20101126183043-mrzipe7mdw1zs6g8
2010-11-26 19:30:43 +01:00
Olivier Dony 38c5f46025 [IMP] report.customfonts: more robust fonts detection and loading
bzr revid: odo@openerp.com-20101126170705-en0wbjb3rna8r96b
2010-11-26 18:07:05 +01:00
P. Christeas 07bb2de912 [MERGE] report: TTF fonts loading fixes ; convert: use newer ir.model.data API
bzr revid: odo@openerp.com-20101126163449-51q4rb96w4glzfz8
2010-11-26 17:34:49 +01:00
P. Christeas 7c55e521a3 customfonts: search path for fonts, override the broken of reportlab
Several Linux distros still ship with a broken reportlab config, which
looks at "c:\winnt\fonts" for fonts!
Since they have not fixed that for months, we have to do their job and
have a custom search path of:
   - paths from the config file (ttfonts.search_path key)
   - sensible defaults for distros, considering os.name and os.uname
   - default reportlab path (opt-out with ttfonts.use_default_path=False)

The result is that we will have more chance of locating TTF fonts and
use them (as now required) in the PDF reports.

bzr revid: p_christ@hol.gr-20101126103459-5wv7crw3i3b56adr
2010-11-26 12:34:59 +02:00
qdp-launchpad@tinyerp.com 5e35a7d806 [MERGE] merged the report server branch
bzr revid: qdp-launchpad@tinyerp.com-20101125181426-dk8asryszl0mqytu
2010-11-25 19:14:26 +01:00
apa-tiny f1817dae8d [IMP]:Improved internal and internal landscape report header for good alignment.
bzr revid: apa@tinyerp.com-20101124101030-h5qhqjfknsqhl8iy
2010-11-24 15:40:30 +05:30
P. Christeas 652be11b57 rml2pdf: better message if a font is not available.
Since 91422704d965268f, specifying a font that is not registered with
pdfmetrics will raise an exception. Now, improve that exception to
help the user understand what has gone wrong.

Note: rather than hiding the fact that some font is missing, the admin
should see this error and try to either fix the report (to use a known
font), or register more fonts with the customfonts.py mechanism.

bzr revid: p_christ@hol.gr-20101123153235-c1yri33ptaydb5eo
2010-11-23 17:32:35 +02:00
P. Christeas 3e3270264f trml2pdf: Fix using of custom fonts in reports
That snippet of code practically meant "don't use anything but the
standard fonts (by name) in the report". It obviously wanted to prevent the
rml2pdf engine from crashing at a non-existent font.
Well, if the report specifies a font that cannot be mapped by the system,
it should preferably raise an exception (and ask us to fix the report), not
silently ignore the font.
Case 1: the internationalized reports, where font name is used to select a
Unicode-capable font.
Case 2: l10n_ch, where the OCR-B font had to be used (perhaps legal req.)

bzr revid: p_christ@hol.gr-20101123152002-es404ul29rsohzqd
2010-11-23 17:20:02 +02:00
P. Christeas 6e893f1e9e rml2pdf: use ustr() instead of unicode()
When strings are 8-bit utf8-encoded, unicode will break with the usual:
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position ..
message. ustr() will have better luck in those cases.

Conflicts:

	bin/report/render/rml2pdf/utils.py

bzr revid: p_christ@hol.gr-20101123151930-8r9q9gg7r902i2nv
2010-11-23 17:19:30 +02:00
P. Christeas 792c8eba19 trml2pdf: cleaner import of StringIO
bzr revid: p_christ@hol.gr-20101123151444-sbnfj0fu1nkl2pkr
2010-11-23 17:14:44 +02:00
P. Christeas 1a5e3cf073 pdf customfonts: allow absolute paths in registered fonts
bzr revid: p_christ@hol.gr-20101123151131-v0v1qfkiajh0cw73
2010-11-23 17:11:31 +02:00
P. Christeas 03b4e87cca report customFonts: have debugging logs for fonts mapped.
Since this is platform-dependant, it is good to be able to debug
if that algorithm worked and located our TTF fonts.

bzr revid: p_christ@hol.gr-20101123151124-wk5r5fac00kpu3f4
2010-11-23 17:11:24 +02:00
P. Christeas 27ae6f3522 report/render: fixes from xrg branch
This should log the rendering exceptions for reports. Also fix am error at
custom fonts, suppress a message.

Conflicts:

	bin/report/render/rml2pdf/utils.py

bzr revid: p_christ@hol.gr-20101123151110-bckon1ji7hul20mp
2010-11-23 17:11:10 +02:00
P. Christeas d1347d0b0d Fix rml2pdf custom ttf fonts.
The attempt to put checks in that code had broken it.

bzr revid: p_christ@hol.gr-20101123150945-012xrvhz3ya2watl
2010-11-23 17:09:45 +02:00
P. Christeas 2f2ed1d138 rml2pdf: fix logging of exceptions.
exception() cannot be called without a string, yet it is even better to
demote those logs to warnings.

Conflicts:

	bin/report/render/rml2pdf/utils.py

bzr revid: p_christ@hol.gr-20101123150903-zgiyob943ivcftkq
2010-11-23 17:09:03 +02:00
Numerigraphe - Lionel Sausin 1fff5e28f1 [FIX] incorrect spellings (childs -> children)
bzr revid: xmo@openerp.com-20101112103952-qabm06zgu6s5qrnn
2010-11-12 11:39:52 +01:00
Olivier Dony f886f8f43b [FIX] reports/rml2pdf: improved previous fix of unicode/str conversion
bzr revid: odo@openerp.com-20101109105329-zjtz7lcdg6h0trxw
2010-11-09 11:53:29 +01:00
Olivier Dony 14b584718d [FIX] reports/rml2pdf: somewhat more consistent handling of unicode/str conversion + cleanup
lp bug: https://launchpad.net/bugs/537449 fixed
lp bug: https://launchpad.net/bugs/662598 fixed

bzr revid: odo@openerp.com-20101108185328-9bbb22v0yisdp8h1
2010-11-08 19:53:28 +01:00
Olivier Dony ac7a2881e7 [MERGE] report branch with <pto> support in RML rendering
bzr revid: odo@openerp.com-20101103171129-ft6iacj63a4jtadd
2010-11-03 18:11:29 +01:00
apa-tiny 6800b74fb7 [FIX]account:[trunk] accounting - GL report (and others) - repeat column headers
lp bug: https://launchpad.net/bugs/645969 fixed

bzr revid: apa@tinyerp.com-20101102080019-vnfo4o8me9pwbtne
2010-11-02 13:30:19 +05:30
apa-tiny 7ce97c0827 remove print
bzr revid: apa@tinyerp.com-20101025093738-i4160t6g3jsvmn0v
2010-10-25 15:07:38 +05:30
Numerigraphe - Lionel Sausin e3e8be4b01 [MERGE] merge from 6.0.0-RC1
bzr revid: ls@numerigraphe.fr-20101025074313-uaspq2f2y523my99
2010-10-25 09:43:13 +02:00
apa-tiny 48e4ab7856 [MERGE]
bzr revid: apa@tinyerp.com-20101011071527-9z3a7nbkqsy8k2n1
bzr revid: apa@tinyerp.com-20101011125948-drvna1etzodmij6f
bzr revid: apa@tinyerp.com-20101012044207-w005n4q1jh4p8ple
bzr revid: apa@tinyerp.com-20101012074626-o862t63bw1sjq2ar
bzr revid: apa@tinyerp.com-20101012093633-qfb4lptlbmcx1tuz
bzr revid: apa@tinyerp.com-20101012102718-pilkyz2lh8t720o1
bzr revid: apa@tinyerp.com-20101013093214-u5o20i2hh4gzm8rr
bzr revid: apa@tinyerp.com-20101014044132-mizwgq34ef3z7mfa
bzr revid: apa@tinyerp.com-20101015044753-ybyz07rq4zdeq5k3
bzr revid: apa@tinyerp.com-20101018045042-dtuz4xbrav9apnyf
bzr revid: apa@tinyerp.com-20101019052902-vlwy799abru8nulj
bzr revid: apa@tinyerp.com-20101019054756-vov61axfh1dzh3hz
bzr revid: jni@tinyerp.com-20101020053559-gfrpplp9txr64462
bzr revid: jni@tinyerp.com-20101021060845-0krmgnhfyy04eibl
bzr revid: jni@tinyerp.com-20101022053439-w8y313u2xb5g9ear
bzr revid: apa@tinyerp.com-20101025052952-9ucbtgjxz31q7ptz
2010-10-25 10:59:52 +05:30
apa-tiny 2ef37e391c merged
bzr revid: apa@tinyerp.com-20101008043536-9i04wca44bkm8cwb
2010-10-08 10:05:36 +05:30
Jay (OpenERP) e38dcfb122 [FIX] XSL Report : title of xsl reports should support accented characters
bzr revid: jvo@tinyerp.com-20101007145240-x9by6sv89jtco7j5
2010-10-07 20:22:40 +05:30
apa-tiny d480253a46 improve code
bzr revid: apa@tinyerp.com-20101007101127-bpk7wfsxrz2q649q
2010-10-07 15:41:27 +05:30
apa-tiny 18a9848662 improve code
bzr revid: apa@tinyerp.com-20101007095127-1bjuobow1bt1sjcd
2010-10-07 15:21:27 +05:30
apa-tiny 10bb97ea32 improved
bzr revid: apa@tinyerp.com-20101006132534-6nzxh5d8ngby0fy0
2010-10-06 18:55:34 +05:30
apa-tiny 382669fa1c improved for pageCount in like survey type report
bzr revid: apa@tinyerp.com-20101006115806-2ub94u9sfrspo9w8
2010-10-06 17:28:06 +05:30
apa-tiny c841c95c39 [IMP]:improved for pagecount
bzr revid: apa@tinyerp.com-20101005072709-y8sl7zq4ctxcgryn
2010-10-05 12:57:09 +05:30
apa-tiny 7ff12c0751 Improved PageCount for internal header
bzr revid: apa@tinyerp.com-20101004133506-9ixrru1nf2kdwl0k
2010-10-04 19:05:06 +05:30
apa-tiny 6c505a4f58 Improved Pagenumber and Pagecount.(need to more improved it..)
bzr revid: apa@tinyerp.com-20101001140724-qllak4zp967ke7dz
2010-10-01 19:37:24 +05:30
apa-tiny 422b9f3292 [revert]:revert
bzr revid: apa@tinyerp.com-20100927131741-i62g05rrk8hv3wbq
2010-09-27 18:47:41 +05:30
apa-tiny 0e2eba601d [IMP]:improved internal header for pagereset
bzr revid: apa@tinyerp.com-20100927125223-jkqs7z851d4jer1x
2010-09-27 18:22:23 +05:30
apa-tiny a4f08919b1 [IMP]:improved internal header for pagereset
bzr revid: apa@tinyerp.com-20100927112825-t8f7vkdut97fnfcv
2010-09-27 16:58:25 +05:30
apa-tiny bf0124f28c [IMP]:improved for internal header
bzr revid: apa@tinyerp.com-20100927100955-m0nh5r0sdp8r4yvt
2010-09-27 15:39:55 +05:30
apa-tiny 83a1255311 [IMP]:improved internal header and print pagecount without black square on the right of the page number
bzr revid: apa@tinyerp.com-20100927095748-9927u4i2y1rmmo9f
2010-09-27 15:27:48 +05:30
apa-tiny 9b82ab08fd [FIX]:reset page number when printing multiple report
bzr revid: apa@tinyerp.com-20100908055620-uvwqjflp28glskdr
2010-09-08 11:26:20 +05:30
Olivier Dony 6e3c34ddd5 [FIX] rml2pdf: allow missing/null image contents
bzr revid: odo@openerp.com-20100830095946-a028170mlds8upre
2010-08-30 11:59:46 +02:00
nch@tinyerp.com 063875402e [FIX]:TypeERROR:logger.exception
bzr revid: nch@tinyerp.com-20100702063124-p096dk42sngx6i0g
2010-07-02 12:01:24 +05:30
qdp-launchpad@tinyerp.com 9f74749726 [FIX] reports were always printing the same page
bzr revid: qdp-launchpad@tinyerp.com-20100628144920-c0z71jadlee2n69i
2010-06-28 16:49:20 +02:00
Mustufa Rangwala aa4a149196 [FIX] report: logging import missing
bzr revid: mra@mra-laptop-20100626085034-msxz9dfsdz5y32r4
2010-06-26 14:20:34 +05:30
vra 7ed648ce88 [MERGE] merge the changes from main trunk branch.
bzr revid: vra@tinyerp.com-20100624084539-ne1e1tscqn1z3jw5
bzr revid: vra@tinyerp.com-20100624084650-svala4jb0dnf7aal
2010-06-24 14:16:50 +05:30
P. Christeas 218843e025 Rml2pdf: never catch more than Exception.
If using the 'except:' syntax, we are also catching system exit and kbd
interrupt, which shouldn't be handled in that context.

bzr revid: p_christ@hol.gr-20100622094540-tlqkov6sksgw8b6s
2010-06-22 12:45:40 +03:00