Commit Graph

462 Commits

Author SHA1 Message Date
Olivier Dony 8233e8b505 [FIX] reports: support for multi-company headers (pending improvements after v6.0)
bzr revid: odo@openerp.com-20101207161523-nxo1lz9u9edajbfa
2010-12-07 17:15:23 +01: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
P. Christeas, O. Dony 6a69f37cf0 [MERGE] many improvements regarding translations, logging, reports, http, speed
bzr revid: odo@openerp.com-20101125142219-8bkqfboyuslzpvyo
2010-11-25 15:22:19 +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
apa-tiny 7df45c45e3 [IMP]:added _strip_name function for report.
bzr revid: apa@tinyerp.com-20101123121538-pvnc0o1pvijupm0i
2010-11-23 17:45:38 +05:30
Harry (OpenERP) 061a71aef8 [MERGE]
bzr revid: hmo@tinyerp.com-20101119072750-ii5127c3olbl0zzv
2010-11-19 12:57:50 +05:30
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
Harry (OpenERP) 993c9884c1 [MERGE] merged with openobject-server branch
bzr revid: hmo@tinyerp.com-20101021105618-2zgqebmp4uvurfcg
bzr revid: hmo@tinyerp.com-20101026064048-e36t27749fsedlqo
bzr revid: hmo@tinyerp.com-20101027131858-osd84c3u109rbqnj
2010-10-27 18:48:58 +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
jas 484524995a [IMP] : base : improved Warnings
bzr revid: jas@tinyerp.com-20101011093709-4tfz25fmwcfs4vft
2010-10-11 15:07:09 +05:30
qdp-launchpad@tinyerp.com 4a1010fec8 [MERGE] merged the work of report team
bzr revid: qdp-launchpad@tinyerp.com-20101011092056-ii16tm5gnuenur59
2010-10-11 11:20:56 +02:00
Olivier Dony f92f272130 [IMP] reports: support generic report_file field instead of report_xml ; add "file" attribute for <report> ; pending better refactoring after v6.0
bzr revid: odo@openerp.com-20101008142301-0os4ajp8xb9kt3cy
2010-10-08 16:23:01 +02:00
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 1cbfb6fdf9 improved
bzr revid: apa@tinyerp.com-20101006122949-u2h74kq5hrvuuvkw
2010-10-06 17:59:49 +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 cffbba5893 merged
bzr revid: apa@tinyerp.com-20101006043358-zhixpm2vonjlfu16
2010-10-06 10:03:58 +05:30
olt@tinyerp.com 9ad4df7f16 [IMP] report engine: decimal precision can now be passed to formatLang (changed the docstring)
bzr revid: olt@tinyerp.com-20101005094755-edh3p1hx6v1pg01f
2010-10-05 11:47:55 +02:00
olt@tinyerp.com a23c020583 [IMP] report engine: decimal precision can now be passed to formatLang. digits argument has an upper precedence
bzr revid: olt@tinyerp.com-20101005094529-bkavp9g994lflx3u
2010-10-05 11:45:29 +02:00
apa-tiny 0fe4e77b57 improve
bzr revid: apa@tinyerp.com-20101005073221-92b343fpetaacum9
2010-10-05 13:02:21 +05:30
apa-tiny c841c95c39 [IMP]:improved for pagecount
bzr revid: apa@tinyerp.com-20101005072709-y8sl7zq4ctxcgryn
2010-10-05 12:57:09 +05:30
olt@tinyerp.com 85bb4e09bc [IMP] report engine: printscreen: total computation now uses digits attribute from field if present
[FIX] report engine: printscreen: fixed wrong indentation

bzr revid: olt@tinyerp.com-20101004135530-lj37yioz8kcfk0xd
2010-10-04 15:55:30 +02:00
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 26edc0dc1c merge
bzr revid: apa@tinyerp.com-20101001140857-rnp8exg3gswhbs9t
bzr revid: apa@tinyerp.com-20101004095217-ydcn3huvfmz9csxq
2010-10-04 15:22:17 +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