Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5319 Weergaven

I want to extract name from partner_ids i.e. a many2many field, so that i can use it with the attachment prefix for the 'partner ledger report'. Please help if anyone can.

Avatar
Annuleer
Beste antwoord

partner_ids is a list, so you can access the first value as such partner_ids[0].name

Avatar
Annuleer
Auteur

You are right, but the problem is I already tried this way and its not working. I have to use 'object.field_name+.pdf' kind of expression to save the report as attachment. When I try like this the report doesn't get printed and i get this error: "TypeError: coercing to Unicode: need string or buffer, tuple found"

Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
5280
0
mrt. 15
4472
1
apr. 17
329
3
aug. 16
9408
2
mrt. 15
9401