Comments (38)
@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.
@nbessi let me know how I can contribute I would like to speed up the process if I can
from l10n-switzerland.
@PCatinean see #105 for a fix
from l10n-switzerland.
@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.
same here for me, empty pdf payment_slip
from l10n-switzerland.
@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.
@yvaucher mine is 3.0
from l10n-switzerland.
@PCatinean is your invoice validated.
Draft invoice should not print anything
from l10n-switzerland.
@nbessi yes invoice is validated and has attached payment_slip objects
from l10n-switzerland.
@PCatinean I just updated to latest it seems to work fine
from l10n-switzerland.
what reportlab should be installed?
I use the newest reportlab version
from l10n-switzerland.
Any should work form 2.4 to latest
from l10n-switzerland.
Myabe there is a problem with ubuntu reportlab. Try install using pip and virtual env.
TrueType extention must be installed
from l10n-switzerland.
I confirmed the problem comes from the reprotlab proposed with Ubuntu.
from l10n-switzerland.
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.
I have installed the newest version of reportlab but PDF is empty again. Ubuntu 14.04 python 2.7
from l10n-switzerland.
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.
@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.
@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.
@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.
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.
@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.
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:
I download not a pdf , I download some other file .
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.
@diezcode can you attatch the PDF. I'm starting to wonder if it is not a viewer problem ?
from l10n-switzerland.
@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.
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.
@nbessi I can see it both in the chrome pdf viewer as well as the standard ubuntu one
from l10n-switzerland.
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.
@diezcode I can read your pdf it is not empty
from l10n-switzerland.
Same
from l10n-switzerland.
@nbessi yes I know but it is not right, with white background.
from l10n-switzerland.
@diezcode that is an option you set from your company bvr settings, the boolean field insert background
from l10n-switzerland.
@PCatinean @diezcode no special char in this pdf...
from l10n-switzerland.
Problem solved, this was the problem:
Because of this input the payment_slip has showed empty. I changed all to "0.00" and it works now
from l10n-switzerland.
@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.
@PCatinean If you put all to 0 value it should be fine.
I must change the label
from l10n-switzerland.
@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.
Sooo stu**** bug as we have inch all values are far too big
from l10n-switzerland.
Related Issues (20)
- [11.0] broken fr.po HOT 3
- [10.0] Cannot compute the Payment Information Identification HOT 2
- l10n_ch_zip obsolete? HOT 2
- [12.0] SEPA Credit Transfer <PstCd> and <TwnNm> are not compatible with swiss banks HOT 6
- Allow duplicate account-Nr for Swiss payment-slip? HOT 6
- Migration to version 13.0 HOT 7
- Migrating Module 'l10n_ch_bank', 'l10n_ch_pain_credit_transfer', 'l10n_ch_payment_slip' HOT 1
- l10n_ch_base_bank should not depend on l10n_ch HOT 6
- Docstring of PaymentSlip._compute_payment_slip_image() is confusing HOT 1
- Add a way to re-use payment slip on a Qweb report HOT 3
- [11] align l10n_ch_payment_slip 11 on 12 HOT 3
- [11] remaining amount not write on ISR HOT 2
- Migration to version 14.0 HOT 13
- Migration to version 15.0 HOT 4
- l10n_ch_base_bank: Bank account type "qr-iban" does not exist HOT 1
- Backport of QR-Iban related module feature HOT 2
- Migration to version 16.0 HOT 7
- PDF creation very, but very slow HOT 1
- Migration to version 17.0 HOT 1
- can't configure postfinance ebill HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from l10n-switzerland.