Merge lp:~camptocamp/openobject-addons/trunk_webkit_improvment_rc into lp:openobject-addons
Proposed by
Nicolas Bessi - Camptocamp
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 3984 | ||||
Proposed branch: | lp:~camptocamp/openobject-addons/trunk_webkit_improvment_rc | ||||
Merge into: | lp:openobject-addons | ||||
Diff against target: |
181 lines (+75/-50) 2 files modified
report_webkit/report_helper.py (+1/-1) report_webkit/webkit_report.py (+74/-49) |
||||
To merge this branch: | bzr merge lp:~camptocamp/openobject-addons/trunk_webkit_improvment_rc | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Dony (Odoo) | Pending | ||
Review via email: mp+41882@code.launchpad.net |
This proposal supersedes a proposal from 2010-11-15.
Description of the change
[FIX] RC2 fix of image embeeding, possibilit to have tmp file name in same milisecond corrected, imporvement of multi header support when cusomizing report, fix of translation getter retunr scr if no translation available
To post a comment you must log in.
Hello Nicolas,
A few remarks:
- adding try/except blocks without specifying the exception class is a no-go, you need to at least specify "except Exception" if you don't know a more precise class to catch. Also, couldn't it be a single try/except block?
I haven't checked, but do you know if the "Exception" type that you are throwing is properly reported to the user, or is it simply displayed in the log? Don't you want to use an except_osv one?
I know I had to fix several things during the initial review to get exceptions reported to the user correctly.
- As for the question about 0 margins, OpenERP does not yet support distinguishing 0 from NULL values for integers. However I wonder if your margins fields should not be fields.char instead, because the wkhtmltopdf params are strings indeed, as you can pass "10px" or "10.5cm", etc. This would give you more flexibility, wouldn't it? Note: You need to be careful however because I think wkhtmltopdf only supports the same unit of measure for all margins, and the default ones are "10mm". So when specifying a unit it needs to be set for all margins and it must be the same.
I'm okay with the latter change for RC2, as it is needed to properly fix the margins.
What do you think?