On 24 Apr 02:24, Paul Leverett wrote:
> Hi, the Delivery Note report template delivery_note.odt is very basic and I 
> need to be able to add extra information.
> 
> There are two things I'd like to do:
> 
> 1) Add the sale.comment text to the delivery note report
> 2) Have an extra text field associated with the Customer Shipment that 
> relates to this shipment, and add this text to the delivery note
> 
> 
> For 1), I have tried adding the following to the delivery_note .odt 
> template:
> 
> <for each="comment in (sale.comment or '').split('\n')">
> Customer Ref: <comment>
> </for>
> 
> But this gives a <ProtocolError... Internal Server Error> - presumably 
> because it cannot access this unique data field related the Customer 
> Shipment?

Because sale is not defined in the context of the report.
I suggest you to add a Function field on the shipment similar to
origins. Be aware that a shipment is not necessary linked to only one
sale.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgp32FYaFwvsx.pgp
Description: PGP signature

Reply via email to