Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5394 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

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 ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
5347
0
มี.ค. 15
4560
1
เม.ย. 17
329
3
ส.ค. 16
9457
2
มี.ค. 15
9456