False into pdf or oo created files

False into pdf or oo created files

Postby hcouplet » Sat Mar 06, 2010 2:54 am

Hi,

I am trying since 2 days to get the openoffice.org reporting engine to work with openErp 5.0.7 on debian lenny.

The only thing I get in my report (pdf or oo) are False value.
I did a sample invoice and did put objects[0].name into a text placeholder field.
Also tried the inputfield with the same result.
I can get the correct pdf with correct content but the values are always replaced by False.

Do you know what I could try or how to debug this.
Here are the package I did install on lenny :

apt-get install libxml2-dev libxslt1-dev python-uno python-genshi python-yaml python-cairo python-pycha

easy_install relatorio

apt-get install openoffice.org-calc openoffice.org-core openoffice.org-draw \
openoffice.org-headless openoffice.org-impress openoffice.org-writer openoffice.org-java-common

Thanks,
Herve
hcouplet
 
Posts: 8
Joined: Tue Mar 02, 2010 6:45 pm

Re: False into pdf or oo created files

Postby sraps » Sat Mar 06, 2010 1:35 pm

Hi,
let's start with the simplest example - are you able to reproduce this by following the tutorial:
http://kndati.lv/index.php/en/openerp/open-erp-addons/reporting-engine/78-first-report

If you have no luck with it, check the log file and console. You may want to start server in the debug mode.

Please try and report back...

Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: False into pdf or oo created files

Postby hcouplet » Sat Mar 06, 2010 4:52 pm

I am able to reproduce the sample except that in the generated pdf, I get "False" as the value replaced for the objects[0].name.

Screenshot of the configured report :
http://couplet.be/temp/erp/rapportXLM.gif

Screenshot of the configured action :
http://couplet.be/temp/erp/action.gif

OO template : (using OO 3.2 on mac OS X)
http://couplet.be/temp/erp/Sample_Invoice

Screenshot of the invoice screen with the sample invoice button :
http://couplet.be/temp/erp/invoice.gif

The generated pdf with the False replaced :
http://couplet.be/temp/erp/openerp_invo ... output.pdf

Herve
hcouplet
 
Posts: 8
Joined: Tue Mar 02, 2010 6:45 pm

Re: False into pdf or oo created files

Postby sraps » Sat Mar 06, 2010 5:41 pm

I sorry, but I can not download the screenshots...
I get "The connection has timed out"

B.R.,
Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: False into pdf or oo created files

Postby hcouplet » Sun Mar 07, 2010 2:44 am

Could you try again.
We had a Power outage at home.

Also to complete my previous response.
I did try to enable debug on the server and I get no debug/info/error message when I open the pdf report except some debug msg on connection pool.
I used options : --log-level=debug and --debug options.

Herve
hcouplet
 
Posts: 8
Joined: Tue Mar 02, 2010 6:45 pm

Re: False into pdf or oo created files

Postby hcouplet » Sun Mar 07, 2010 1:29 pm

I tried to upgrade to openoffice 3.1.1-15 from debian backports.
This didn't change anything. I still have the False in the generated pdf.

Packages list with version :
http://couplet.be/temp/erp/pkglist.txt
hcouplet
 
Posts: 8
Joined: Tue Mar 02, 2010 6:45 pm

Re: False into pdf or oo created files

Postby sraps » Sun Mar 07, 2010 1:40 pm

This is normal, in this case... You have "name" field, which is "Description" on the form - which is empty for this invoice. Try to print the same report for other invoice which has something written in the field.

Ok, I agree, that this is a bit awkward, we would expect empty string. Still this is how it is, at least now.

Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: False into pdf or oo created files

Postby hcouplet » Sun Mar 07, 2010 2:23 pm

sraps wrote:This is normal, in this case... You have "name" field, which is "Description" on the form - which is empty for this invoice. Try to print the same report for other invoice which has something written in the field.

Ok, I agree, that this is a bit awkward, we would expect empty string. Still this is how it is, at least now.

Kaspars


Thanks for your help.
This solve my problem.

Herve
hcouplet
 
Posts: 8
Joined: Tue Mar 02, 2010 6:45 pm


Return to Aeroo Reports & OpenOffice.org Reporting Engine

cron
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED