[REM] Removed mail/base_need_action, moved to server. Fixed now deleted need_action boolean field from view.

bzr revid: tde@openerp.com-20120307091018-tcpvsa5shplc23vu
This commit is contained in:
Thibault Delavallée 2012-03-07 10:10:18 +01:00
parent c2d045df3d
commit db55865050
5 changed files with 3 additions and 79 deletions

View File

@ -95,9 +95,9 @@
<button string="Approved" name="second_validate" states="validate1" type="workflow" icon="gtk-apply" groups="base.group_hr_user"/>
<button string="Set to Draft" name="set_to_draft" states="refuse,validate" type="object" icon="gtk-convert" groups="base.group_hr_user"/>
</group>
<separator string="Temp Need Action" colspan="4"/>
<field name="need_action"/>
<separator string="Temporary Need Action" colspan="4"/>
<field name="need_action_user_id"/>
<newline/>
<field name="message_ids_social" colspan="4" widget="ThreadView" nolabel="1"/>
</page>
</notebook>

View File

@ -19,7 +19,6 @@
#
##############################################################################
import base_needaction
import mail_message
import mail_thread
import mail_group

View File

@ -1,70 +0,0 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2009-Today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
#
##############################################################################
import time
import tools
import logging
from osv import osv, fields
from tools.translate import _
class mail_needaction(osv.osv):
'''TODO
'''
_name = 'mail.needaction'
_description = 'Need action Engine'
def get_needaction_user_id(self, cr, uid, ids, name, arg, context=None):
if context is None:
context = {}
result = {}
for obj in self.browse(cr, uid, ids, context=context):
result[obj.id] = False
return result
#def set_needaction_user_id(self, cr, uid, id, name, value, arg, context=None):
#"""
#@param name: Name of field
#@param value: Value of field
#@param arg: User defined argument
#"""
#if context is None:
#context = {}
#return self.write(cr, uid, [id], {name: value}, context=context)
def get_needaction_user_id_wrapper(self, cr, uid, ids, name, arg, context=None):
return self.get_needaction_user_id(cr, uid, ids, name, arg, context=context)
def set_needaction_user_id_wrapper(self, cr, uid, id, name, value, arg, context=None):
return self.set_needaction_user_id(cr, uid, id, name, value, arg, context=context)
_columns = {
'need_action': fields.boolean('Need action'),
'need_action_user_id': fields.function(get_needaction_user_id_wrapper,
#fnct_inv=set_needaction_user_id_wrapper,
type='many2one', relation='res.users', store=True, string='User'),
}
_defaults = {
'need_action': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,5 +0,0 @@
<?xml version="1.0"?>
<openerp>
<data>
</data>
</openerp>

View File

@ -53,7 +53,7 @@ class mail_thread(osv.osv):
'''
_name = 'mail.thread'
_description = 'Email Thread'
_inherit = ['mail.needaction']
_inherit = ['res.needaction']
def _get_message_ids(self, cr, uid, ids, name, arg, context=None):
res = {}