Closed gurneyalex closed 9 years ago
I agree on removing the camptocamp logo. Still, it's on the report_webkit
core module.
@nbessi, do you agree with @pedrobaeza's proposed solution?
Thanks!
@lepistone @gurneyalex please refer to my comment in https://github.com/OCA/webkit-tools/pull/11
I would prefer to override the image header definied in report_webkit module if possbile and try to make a patch in addons to change default header image in the meanwhile. But I version 8 it is less important.
I insist in my option, because you would expect the same behaviour on Webkit reports than on standard QWeb ones, so change to the header to company logo (binary data in res.company record) is the most appropiated option. You cannot override rest of addons, because this data is in header, not in the mako definition.
@pedrobaeza well in this case the inconstancy is also true with default report_webkit header. If we use your solution we should modifiy default header the same way. By doing a patch in addons or by overriding them in base_header_webkit. I have no objection with that and it will unify the logo.
But that mean we have to ensure default logo dimentions will not break header. We must alse specify an height and a width by default in embeed_image
I applied the change suggested py @pedrobaeza.
I marked that as "work in progress" because I want to port sale_order_webkit to test if that works fine.
blocked by https://github.com/odoo/odoo/issues/2334
./base_headers_webkit/__openerp__.py:39:3: E127 continuation line over-indented for visual indent
./base_headers_webkit/__openerp__.py:46:3: E124 closing bracket does not match visual indentation
This module also migrated to V8 in this PR https://github.com/OCA/webkit-tools/pull/24
updated version of #9 with @pedrobaeza requested fix