Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5353 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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"

Related Posts Răspunsuri Vizualizări Activitate
0
mar. 15
5324
0
mar. 15
4498
1
apr. 17
329
3
aug. 16
9421
2
mar. 15
9419