c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23189
Re: [Bug 775698] [NEW] [6.1 trunk] : [document, document_ftp] cannot open pdf file from ftp server
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.
--
Say NO to spam and viruses. Stop using Microsoft Windows!
--
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
Follow ups
References