[FIX]: fix a ref problem of voucher report

bzr revid: mga@tinyerp.com-20100914140610-ae8fp1kd60v5237b
This commit is contained in:
Mantavya Gajjar 2010-09-14 19:36:10 +05:30
parent 8a892c96fe
commit 75a2c7dbf6
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ class report_voucher(report_sxw.rml_parse):
voucher_line = self.pool.get('account.voucher.line').search(self.cr, self.uid, [('partner_id','=',move_ids.partner_id.id), ('voucher_id','=',voucher_id)])
if voucher_line:
voucher = self.pool.get('account.voucher.line').browse(self.cr, self.uid, voucher_line)[0]
return voucher.ref
return voucher.name
else:
return
report_sxw.report_sxw(

View File

@ -154,7 +154,7 @@
<images/>
</stylesheet>
<story>
<para style="P8">[[ repeatIn(objects,'voucher') ]]</para>
<para style="P8">[[ repeatIn(objects,'voucher') ]]</para>ref
<para style="terp_default_8">
<font color="white"> </font>
</para>
@ -252,7 +252,7 @@
</tr>
<tr>
<td>
<para style="terp_default_8_Italic">[[ move_ids.name ]] - [[ get_ref(voucher.id,move_ids) ]]</para>
<para style="terp_default_8_Italic">[[ move_ids.name ]] - [[ voucher.reference or '' ]]</para>
</td>
<td>
<para style="terp_default_9_50">