Skip to content

10.0 report qweb pdf watermark - #126

Merged
pedrobaeza merged 4 commits into
OCA:10.0from
StefanRijnhart:10.0-report_qweb_pdf_watermark
May 30, 2017
Merged

pedrobaeza merged 4 commits into
OCA:10.0from
StefanRijnhart:10.0-report_qweb_pdf_watermark

Conversation

@StefanRijnhart

Copy link
Copy Markdown
Member

Actual migration in this commit: StefanRijnhart@58e717a

Only functional change is that I removed the technical settings group tag (i.e. debug mode) on the expression field, because it is not possible to edit reports anyway without entering debug mode in the first place.

cc @hbrunn

@StefanRijnhart StefanRijnhart added this to the 10.0 milestone Apr 22, 2017
@pedrobaeza pedrobaeza mentioned this pull request Apr 22, 2017
10 tasks
@StefanRijnhart

Copy link
Copy Markdown
Member Author

@hbrunn is it a known issue that the watermark is not visible under the text in the report as in this example?

invoices

@hbrunn

hbrunn commented Apr 22, 2017

Copy link
Copy Markdown
Member

@StefanRijnhart no, in 9, this works. Does something set a background here? Or is https://github.com/OCA/OCB/blob/10.0/addons/report/static/src/css/reset.min.css not used for some reason?

@StefanRijnhart

Copy link
Copy Markdown
Member Author

@hbrunn thanks for the pointer! This is actually reproducible on the 9.0 runbot. I'm guessing it's the background: transparent property from that css file that does the trick?

@StefanRijnhart

Copy link
Copy Markdown
Member Author

@hbrunn What a minefield. Probably related to wkhtmltopdf/wkhtmltopdf#2084. Works with wkhtmltopdf 0.12.4 (instead of 0.12.2.4) and loading order of report.assets_pdf.0.css and report.assets_common.0.css reversed (the pdf one last, as it includes the reset CSS).

@hbrunn

hbrunn commented Apr 24, 2017

Copy link
Copy Markdown
Member

nice catch!

@StefanRijnhart

Copy link
Copy Markdown
Member Author

nice module!

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash together all "OCA Transbot" commits (https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests)

@StefanRijnhart
StefanRijnhart force-pushed the 10.0-report_qweb_pdf_watermark branch from 61ea2c1 to 5827f05 Compare April 24, 2017 18:29
@StefanRijnhart

Copy link
Copy Markdown
Member Author

@pedrobaeza you got it!

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Let's wait for the Odoo's answer before merging this with the hack

@StefanRijnhart
StefanRijnhart force-pushed the 10.0-report_qweb_pdf_watermark branch from 5827f05 to e928afd Compare April 25, 2017 06:46
@StefanRijnhart

Copy link
Copy Markdown
Member Author

I replaced the workaround for odoo/odoo#16610 with the fix that I also proposed to Odoo as per discussion on the upstream bug.

@StefanRijnhart
StefanRijnhart force-pushed the 10.0-report_qweb_pdf_watermark branch from e928afd to d050269 Compare April 25, 2017 06:49
@StefanRijnhart
StefanRijnhart force-pushed the 10.0-report_qweb_pdf_watermark branch from d050269 to f5171d6 Compare April 25, 2017 06:50
@lmignon

lmignon commented May 30, 2017

Copy link
Copy Markdown
Contributor

@pedrobaeza @StefanRijnhart Can we merge this one?

@StefanRijnhart

Copy link
Copy Markdown
Member Author

@lmignon Why, yes!

@pedrobaeza
pedrobaeza merged commit c74b4e2 into OCA:10.0 May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants