diff options
| author | Khushboo Bhatt (Open ERP) <kbh@tinyerp.com> | 2012-11-21 14:43:58 +0530 |
|---|---|---|
| committer | Khushboo Bhatt (Open ERP) <kbh@tinyerp.com> | 2012-11-21 14:43:58 +0530 |
| commit | a5afea27d5af1e04d4e2d99dfa444df4eab9d65f (patch) | |
| tree | 9bf646ecc9ab93c4abb5b53217254157fdbaf960 /addons | |
| parent | 0fcc816994ef41eb81f3eb06f52788b1e5718af9 (diff) | |
[IMP]hr_expense:code improved
bzr revid: kbh@tinyerp.com-20121121091358-33g7oonfo819ry1f
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/hr_expense/hr_expense.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index a580feff399..3327312ef9d 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -123,19 +123,19 @@ class hr_expense_expense(osv.osv): company_id = employee.company_id.id return {'value': {'department_id': department_id, 'company_id': company_id}} - def expense_confirm(self, cr, uid, ids, context=None): + def expense_confirm(self, cr, uid, ids, *args): for expense in self.browse(cr, uid, ids): if expense.employee_id and expense.employee_id.parent_id.user_id: self.message_subscribe_users(cr, uid, [expense.id], user_ids=[expense.employee_id.parent_id.user_id.id]) - self.expense_toapprove_notificate(cr, uid, ids, context=context) + self.expense_toapprove_notificate(cr, uid, ids) self.write(cr, uid, ids, { 'state':'confirm', 'date_confirm': time.strftime('%Y-%m-%d') }) return True - def expense_accept(self, cr, uid, ids, context=None): - self.expense_approve_notificate(cr, uid, ids, context=context) + def expense_accept(self, cr, uid, ids, *args): + self.expense_approve_notificate(cr, uid, ids) self.write(cr, uid, ids, { 'state':'accepted', 'date_valid':time.strftime('%Y-%m-%d'), @@ -143,8 +143,8 @@ class hr_expense_expense(osv.osv): }) return True - def expense_canceled(self, cr, uid, ids, context=None): - self.expense_refuse_notificate(cr, uid, ids , context=context) + def expense_canceled(self, cr, uid, ids, *args): + self.expense_refuse_notificate(cr, uid, ids) self.write(cr, uid, ids, {'state':'cancelled'}) return True |
