[FIX]hr_payroll: Fix if address is not defined.

bzr revid: atp@tinyerp.com-20121003060346-tdakbm44iumvynw8
This commit is contained in:
Atul Patel (OpenERP)
2012-10-03 11:33:46 +05:30
parent bdae7c2850
commit 3d6520b3ff
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -197,7 +197,8 @@
</para>
</td>
<td>
<para style="P4">[[o.employee_id.address_home_id and o.employee_id.address_home_id.name or '' ]],[[o.employee_id.address_home_id and display_address(o.employee_id.address_home_id)]]</para>
<para style="P4">[[o.employee_id.address_home_id and o.employee_id.address_home_id.name or '' ]]
[[o.employee_id.address_home_id and display_address(o.employee_id.address_home_id)]]</para>
</td>
</tr>
</blockTable>
@@ -234,7 +234,8 @@
</para>
</td>
<td>
<para style="P5">[[o.employee_id.address_home_id and o.employee_id.address_home_id.name or '' ]],[[o.employee_id.address_home_id and display_address(o.employee_id.address_home_id)]]</para>
<para style="P5">[[o.employee_id.address_home_id and o.employee_id.address_home_id.name or '' ]]
[[o.employee_id.address_home_id and display_address(o.employee_id.address_home_id)]]</para>
</td>
</tr>
</blockTable>