OpenERP のレポートにバイナリ フィールド イメージを表示するにはどうすればよいですか? .sxw を使用して .rml に変換しました。その画像をpdfレポートに表示したい。
2450 次
3 に答える
4
rml ファイルを編集します。バイナリフィールドとして「image_field」を使用しています。
<image>[[ obj.image_field or removeParentNode('image') ]]</image>
位置も指定できる
<image x="21.3cm" y="47.6cm" height="40.0" >[[ obj.image_field or removeParentNode('image') ]]</image>
于 2012-05-03T14:35:10.880 に答える
0
次の .sxw 式を使用できます。
[[ obj.image_field and setTag('para','image',{'width':'80.0','height':'80.0'}) ]] [[ obj.image_field ]]
これはエンジンによって次のように変換されます。
<para rml_tag="obj.image_field and setTag('para','image',{'width':'80.0','height':'80.0'})">[[ '' ]] [[ obj.image_field ]]</para>
于 2012-05-08T20:15:12.253 に答える