コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5318 ビュー

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"

関連投稿 返信 ビュー 活動
0
3月 15
5278
0
3月 15
4471
1
4月 17
329
3
8月 16
9407
2
3月 15
9401