Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
5387 Ansichten

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
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
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"

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
März 15
5337
0
März 15
4528
1
Apr. 17
329
3
Aug. 16
9448
2
März 15
9439