OCA / webkit-tools

https://odoo-community.org/project/tools-maintainers-30
GNU Affero General Public License v3.0
11 stars 71 forks source link

8.0 base headers webkit #10

Closed gurneyalex closed 9 years ago

gurneyalex commented 10 years ago

updated version of #9 with @pedrobaeza requested fix

lepistone commented 10 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!

nbessi commented 10 years ago

@lepistone @gurneyalex please refer to my comment in https://github.com/OCA/webkit-tools/pull/11

nbessi commented 10 years ago

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.

pedrobaeza commented 10 years ago

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.

nbessi commented 10 years ago

@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

lepistone commented 10 years ago

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.

lepistone commented 10 years ago

blocked by https://github.com/odoo/odoo/issues/2334

yvaucher commented 9 years ago
./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
vrenaville commented 9 years ago

This module also migrated to V8 in this PR https://github.com/OCA/webkit-tools/pull/24