From 331e420a5525697a1a9a793e1cbf0ff016812198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 20 Dec 2012 12:02:42 +0100 Subject: [PATCH] [FIX] needaction: fixed last commit, harmonizing the parameters of the various needaction_domain_get. bzr revid: tde@openerp.com-20121220110242-ot9ha7rt1ofyjoj5 --- addons/base_calendar/crm_meeting.py | 2 +- addons/hr_holidays/hr_holidays.py | 2 +- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/base_calendar/crm_meeting.py b/addons/base_calendar/crm_meeting.py index ec71b350bd0..7dfb502276c 100644 --- a/addons/base_calendar/crm_meeting.py +++ b/addons/base_calendar/crm_meeting.py @@ -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', diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py index cca63e0712e..52995733ce9 100644 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -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)] diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 7299460554b..c473670b014 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -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: