On 19/11/10 08:54 +0100, Paul J Stevens wrote:
> On 11/18/2010 02:42 PM, Tobias Paepke wrote:
> 
> > its good that someone takes a look into ConTeXT rendering of PDF's.
> > I'm afraid there are currently no templates for parsing. At least i did
> > not find any.
> > The tryton frontend isn't prepared already to choose the corresponding
> > rendering method?
> 
> I don't know.
> 
> Atm, all I need is to generate and store a PDF whenever a
> invoice/creditnote is created.
> 
> I would prefer to use the old and proven xslt route, but given that
> relatorio doesn't have xslt support (yet) and that I'm on a tight
> schedule which doesn't leave me time to develop the necessary extension,
> I thought I'd use the context method.

You can override any report and use the report engine you want.
You just have to modify this method:
    http://hg.tryton.org/trytond/file/fedd0b6a7c6d/trytond/report/report.py#l126

I suggest you to directly call reportlab if you want to generate PDF.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpPcdP0IcpOY.pgp
Description: PGP signature

Reply via email to