[FIX] l10n_in_hr_payroll: Fix payment advice report if the employee is not present

bzr revid: mra@tinyerp.com-20120726074034-w9sryg62d4x0no2k
This commit is contained in:
Mustufa Rangwala (OpenERP) 2012-07-26 13:10:34 +05:30
parent 533e5d8bdc
commit 806ddaec0f
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ class payment_advice_report(osv.osv):
from
hr_payroll_advice as p
left join hr_payroll_advice_line as l on (p.id=l.advice_id)
where
l.employee_id IS NOT NULL
group by
p.number,p.name,p.date,p.state,p.company_id,p.bank_id,p.chaque_nos,p.neft,
l.employee_id,l.advice_id,l.bysal,l.ifsc_code, l.name