Pick list [report]. How to get different delivery address?

Hello friends,

in my pick list, I have
<shipment.customer.address_get().postal_code> and
<shipment.customer.rec_name>

Now, when using a different shipment address in an order, nevertheless I get the party’s main delivery postcode and name. Which expressions would I have to use in order to get the actual delivery address postal code and name?

Thanks a lot in advance, Wolf

I guess you want to print shipment.delivery_address which is the address set on the customer shipment.

Thank you, Sergi. I tried (my best guess on the base you gave):

Shipment post code:
<shipment.delivery_address_get().postal_code>

Customer:
<shipment.delivery_address.rec_name>

That throws, when creating a pick list:

Fault: <trytond.report.report.Report._get_records.<locals>.TranslateModel object at 0x7c93a0121ea0> has no member named "delivery_address_get" 

What did I do wrong?

Cheers,
Wolf

You added a _get which is not required. You should do:

<shipment.delivery_address.postal_code>

1 Like

Well that was there before. Anyway.
Thank you very much, you created a nice early morning success for me.

NB: I’m maintaining a collection of “germanized” report templates and a list of Genshi expressions HERE at Tryton community, because I felt a certain lack of info on this topic.

Cheers,
Wolf

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.