Merge lp:~openerp-dev/openobject-addons/trunk-bug-1098238-vba into lp:openobject-addons

Proposed by Vijaykumar Baladaniya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1098238-vba
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
hr_timesheet_sheet/wizard/hr_timesheet_current.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1098238-vba
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+143825@code.launchpad.net

Description of the change

Hello Sir,

    All changes applied related to bug: [https://bugs.launchpad.net/openobject-addons/+bug/1098238].
    Kindly review the code.

Thanks,
 vba

To post a comment you must log in.

Unmerged revisions

8508. By Vijaykumar Baladaniya (OpenERP)

[FIX] Improve search parameter.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_timesheet_sheet/wizard/hr_timesheet_current.py'
2--- hr_timesheet_sheet/wizard/hr_timesheet_current.py 2012-12-06 14:56:32 +0000
3+++ hr_timesheet_sheet/wizard/hr_timesheet_current.py 2013-01-18 06:00:34 +0000
4@@ -36,7 +36,7 @@
5 user_ids = self.pool.get('hr.employee').search(cr, uid, [('user_id','=',uid)], context=context)
6 if not len(user_ids):
7 raise osv.except_osv(_('Error!'), _('Please create an employee and associate it with this user.'))
8- ids = ts.search(cr, uid, [('user_id','=',uid),('state','in',('draft','new')),('date_from','<=',time.strftime('%Y-%m-%d')), ('date_to','>=',time.strftime('%Y-%m-%d'))], context=context)
9+ ids = ts.search(cr, uid, [('user_id','=',uid),('state','in',('draft','new','confirm')),('date_from','<=',time.strftime('%Y-%m-%d')), ('date_to','>=',time.strftime('%Y-%m-%d'))], context=context)
10
11 if len(ids) > 1:
12 view_type = 'tree,form'

Subscribers

People subscribed via source and target branches

to all changes: