← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 775698] [NEW] [6.1 trunk] : [document, document_ftp] cannot open pdf file from ftp server

 

On 02. 05. 11 21:14, xrg wrote:
> On Monday 02 May 2011, you wrote:
>> Public bug reported:
>>
>> hi there,
>>
>> rev 4656, ubuntu 11.04
>>
>> suffix: _print
>> doc type: PDF Report
>> include the name: yes
>> PDF report: Invoice
>>
>> navigating the ftp server I can find all structures and files (virtual
>> pdf, 0bites) I can open with firefox, however, NOT with the file manager
>> (ubuntu).
>>
> I can tell you an implementation detail, from 6.0 version (6.1 is one that 
> I've never tried) :
> Those virtual (generated) files, always report 0 as their initial file size. 
> That's because I can't know the real size, until the pdf is actually 
> generated. I think /some/ ftp clients stick to the zero reported filesize and 
> never attempt to retrieve the real file (and hence trigger its generation). 
>
> That's a chicken-and-egg problem. Obviously, generating the file too early 
> (just to get its size) and then once again (caching is not a trivial solution) 
> is not an acceptable, either.
>
>
well, I guess you are right :-)

actually, I can open them with a document viewer, but not with the
(default) adobe reader. :-((
I filed the bug, as it actually happened that firefox worked only AFTER
i did some configurations while trying to set-up webdav (didn't succeed
yet ). before, it didn't work at all (pity there's no proper doc on how
to set up these modules)
 
So I thought that maybe someone did find a solution to this.

thank you anyway!
b

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/775698

Title:
  [6.1 trunk] : [document, document_ftp] cannot open pdf file from ftp
  server

Status in OpenERP Modules (addons):
  New

Bug description:
  hi there,

  rev 4656, ubuntu 11.04

  I configured the document management to generate files for invoices
  knowledge>config>doc. mgmt.>directories
  new directory
  name:Invoices
  parent: documents
  database storage
  type: ressource
  model: invoice
  field:number
  domain:[]
  find all ressources: yes
  generated file:
  name: invoice
  sequence:1
  suffix: _print
  doc type: PDF Report
  include the name: yes
  PDF report: Invoice

  navigating the ftp server I can find all structures and files (virtual
  pdf, 0bites) I can open with firefox, however, NOT with the file
  manager (ubuntu).

  thenk you!
  b


References