修改 hr_expense.py
<br />def expense_accept(self, cr, uid, ids, *args):<br /> # 任何人都不能 accept 自己创建的 expense<br /> userID = self.browse(cr, uid, ids)[0].user_id.id<br /> if userID == uid:<br /> raise osv.except_osv(_('Error !'), _('You can not accept your expense by yourself!'))<br />