Merge lp:~openerp-dev/openobject-addons/trunk-bug-1132963-sunil into lp:openobject-addons

Proposed by sunil prajapati(OpenERP Trainee)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1132963-sunil
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
hr_payroll/hr_payroll.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1132963-sunil
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+151899@code.launchpad.net

Description of the change

Hello,
  issue:
  hr_payroll - missing & (and) on get_contract

 solve:
 i have solved hr_payroll -Add '&' (and) on get_contract
 -Fixes problem of final clause in get_contract

Thanks,
Sunil

To post a comment you must log in.
8593. By sunil prajapati(OpenERP Trainee)

MERGE with trunk

8594. By sunil prajapati(OpenERP Trainee)

MERGE with trunk

Unmerged revisions

8594. By sunil prajapati(OpenERP Trainee)

MERGE with trunk

8593. By sunil prajapati(OpenERP Trainee)

MERGE with trunk

8592. By sunil prajapati(OpenERP Trainee)

[FIX]:addons:hr_payroll add '&' on get_contract function

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_payroll/hr_payroll.py'
2--- hr_payroll/hr_payroll.py 2013-01-31 06:33:33 +0000
3+++ hr_payroll/hr_payroll.py 2013-03-12 05:32:21 +0000
4@@ -378,7 +378,7 @@
5 #OR if it starts between the given dates
6 clause_2 = ['&',('date_start', '<=', date_to),('date_start','>=', date_from)]
7 #OR if it starts before the date_from and finish after the date_end (or never finish)
8- clause_3 = [('date_start','<=', date_from),'|',('date_end', '=', False),('date_end','>=', date_to)]
9+ clause_3 = ['&',('date_start','<=', date_from),'|',('date_end', '=', False),('date_end','>=', date_to)]
10 clause_final = [('employee_id', '=', employee.id),'|','|'] + clause_1 + clause_2 + clause_3
11 contract_ids = contract_obj.search(cr, uid, clause_final, context=context)
12 return contract_ids

Subscribers

People subscribed via source and target branches

to all changes: