[FIX] needaction: fixed last commit, harmonizing the parameters of the various needaction_domain_get.
bzr revid: tde@openerp.com-20121220110242-ot9ha7rt1ofyjoj5
This commit is contained in:
parent
d737a7f098
commit
331e420a55
|
@ -112,7 +112,7 @@ class crm_meeting(base_state, osv.Model):
|
|||
# ----------------------------------------
|
||||
|
||||
# shows events of the day for this user
|
||||
def _needaction_domain_get(self, cr, uid, domain=[], context={}):
|
||||
def _needaction_domain_get(self, cr, uid, context=None):
|
||||
return [('date', '<=', time.strftime('%Y-%M-%D 23:59:59')), ('date_deadline', '>=', time.strftime('%Y-%M-%D 00:00:00')), ('user_id', '=', uid)]
|
||||
|
||||
def message_post(self, cr, uid, thread_id, body='', subject=None, type='notification',
|
||||
|
|
|
@ -418,7 +418,7 @@ class hr_holidays(osv.osv):
|
|||
# OpenChatter and notifications
|
||||
# -----------------------------
|
||||
|
||||
def _needaction_domain_get(self, cr, uid, ids, context=None):
|
||||
def _needaction_domain_get(self, cr, uid, context=None):
|
||||
emp_obj = self.pool.get('hr.employee')
|
||||
empids = emp_obj.search(cr, uid, [('parent_id.user_id', '=', uid)], context=context)
|
||||
dom = ['&', ('state', '=', 'confirm'), ('employee_id', 'in', empids)]
|
||||
|
|
|
@ -227,7 +227,7 @@ class hr_timesheet_sheet(osv.osv):
|
|||
# OpenChatter methods and notifications
|
||||
# ------------------------------------------------
|
||||
|
||||
def _needaction_domain_get(self, cr, uid, ids, context=None):
|
||||
def _needaction_domain_get(self, cr, uid, context=None):
|
||||
emp_obj = self.pool.get('hr.employee')
|
||||
empids = emp_obj.search(cr, uid, [('parent_id.user_id', '=', uid)], context=context)
|
||||
if not empids:
|
||||
|
|
Loading…
Reference in New Issue