Giter Site home page Giter Site logo

Comments (38)

nbessi avatar nbessi commented on July 26, 2024

@PCatinean I should add a new render using reportlab this week.
It was in the roadmap as PIL generate heavier and blurrier PDF. The choice of the renderer will be available in the company.

Regards

Nicolas

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@nbessi let me know how I can contribute I would like to speed up the process if I can

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean see #105 for a fix

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@nbessi thank you for the ping

I have uninstalled personal modules inheriting this, uninstalled/installed this version and then update all

It seems to be generating empty pdf's for me, maybe I'm doing something wrong

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

same here for me, empty pdf payment_slip

from l10n-switzerland.

yvaucher avatar yvaucher commented on July 26, 2024

@diezcode @PCatinean can you tell us which version of reportlab you are using? BTW it might be better to tell about it in PR #105

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@yvaucher mine is 3.0

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean is your invoice validated.
Draft invoice should not print anything

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@nbessi yes invoice is validated and has attached payment_slip objects

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean I just updated to latest it seems to work fine

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

what reportlab should be installed?
I use the newest reportlab version

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

Any should work form 2.4 to latest

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

Myabe there is a problem with ubuntu reportlab. Try install using pip and virtual env.
TrueType extention must be installed

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

I confirmed the problem comes from the reprotlab proposed with Ubuntu.

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

In my reportlab repository I don't have an font repository. How can i add fonts there? Can you give an zip ?

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

I have installed the newest version of reportlab but PDF is empty again. Ubuntu 14.04 python 2.7

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

I uninstalled OS proposed library and installed through pip and got version 3.1.44 with python 2.6.7 and I still get empty pages

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean in reportlab doc they said only python 2.7 and 3 are fully supported. that also weird that you can run version 8.0 of odoo on python 2.6 as it uses dict comprehention

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@nbessi My apologies it is 2.7.6 not 2.6.7, I messed up.Maybe there is something else wrong in my instance but I tried both versions of reportlab to no avail, wish I knew how to debug this further...

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean @diezcode if you run the code provided here http://stackoverflow.com/questions/23769845/why-does-reportlab-3-0-save-an-empty-pdf and it zou have an empty pdf that means that your reportlab setting is broken . It seems that you need to install apt-get install libfreetype6-dev in Ubuntu to have font support required by OCRB

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

Basically if PIL compile with all image support it should work:
http://codeinthehole.com/writing/how-to-install-pil-on-64-bit-ubuntu-1204/

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@nbessi Indeed with the reportlab from the Ubuntu repository the test failed, I switched back to the pip one and the text came up in the small script even with this working, odoo restarted and l10n_ch_payment_slip upgraded it still generated two empty pages

I guess we have a mistery on our hands, feel free to join IRC if you are willing to pursue this and need faster feedback

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

Same here
I tested it with the latest debian Package again. I installed all and imported an database dump local. The emptry pdf File still coming.
When I try to download it like here:
unbenannt

I download not a pdf , I download some other file .
unbe1nannt

When I print the invoice as pdf, I have no problem. It's only the PDF of the payment slip that is empty.

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@diezcode can you attatch the PDF. I'm starting to wonder if it is not a viewer problem ?

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean @diezcode If you open the PDF I generate is it blank ?
http://filebin.ca/1sr4h7cf0RFT/one_slip_per_page_from_invoice2.pdf

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

no , I see the slip at the bottom of the pdf

this is my : http://filebin.ca/1sr7uwR0RO6t/one_slip_per_page_from_invoice3.pdf

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@nbessi I can see it both in the chrome pdf viewer as well as the standard ubuntu one

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

When I test it with another Database dump that comes from another server. It shows me like this on the same server that the other pdf is empty :
http://filebin.ca/1srOqujf8NKj/one_slip_per_page_from_invoice7.pdf

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@diezcode I can read your pdf it is not empty

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

Same

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

@nbessi yes I know but it is not right, with white background.

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@diezcode that is an option you set from your company bvr settings, the boolean field insert background

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean @diezcode no special char in this pdf...

from l10n-switzerland.

diezcode avatar diezcode commented on July 26, 2024

Problem solved, this was the problem:
yyyyunbenannt

Because of this input the payment_slip has showed empty. I changed all to "0.00" and it works now

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean I know i'm sure that you have set bvr delta in company.
As we are in inch now they are all wrong

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

@PCatinean If you put all to 0 value it should be fine.

I must change the label

from l10n-switzerland.

PCatinean avatar PCatinean commented on July 26, 2024

@nbessi it seems diezcode nailed it, that was the root of the problem, all the coordinates were off because of the settings in the backend

from l10n-switzerland.

nbessi avatar nbessi commented on July 26, 2024

Sooo stu**** bug as we have inch all values are far too big

from l10n-switzerland.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.