[Fix] fix the buildbot warning
bzr revid: sbh@tinyerp.com-20110111052710-yhvwofgbz4j110lb
This commit is contained in:
parent
9e0742ba85
commit
de11917266
|
@ -450,7 +450,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
|
|||
values = {
|
||||
'state': 'anonymized',
|
||||
}
|
||||
res = ir_model_fields_anonymization_model.write(cr, uid, field_ids, values, context=context)
|
||||
ir_model_fields_anonymization_model.write(cr, uid, field_ids, values, context=context)
|
||||
|
||||
# add a result message in the wizard:
|
||||
msgs = ["Anonymization successful.",
|
||||
|
@ -578,7 +578,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
|
|||
try:
|
||||
idn = self.pool.get('ir.model.data')._get_id(cr, uid, mod, id_str)
|
||||
res = int(self.pool.get('ir.model.data').read(cr, uid, [idn], ['res_id'])[0]['res_id'])
|
||||
except Exception, e:
|
||||
except:
|
||||
res = None
|
||||
return res
|
||||
|
||||
|
|
|
@ -18,13 +18,8 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
from osv import fields, osv, orm
|
||||
from tools import config
|
||||
from tools.translate import _
|
||||
import ir
|
||||
from osv import fields, osv
|
||||
import netsvc
|
||||
import os
|
||||
import time
|
||||
import tools
|
||||
|
||||
def _type_get(self, cr, uid, context=None):
|
||||
|
|
|
@ -22,10 +22,7 @@
|
|||
from lxml import etree
|
||||
import time
|
||||
from datetime import datetime, date
|
||||
from operator import itemgetter
|
||||
from itertools import groupby
|
||||
|
||||
from tools.misc import flatten
|
||||
from tools.translate import _
|
||||
from osv import fields, osv
|
||||
|
||||
|
@ -322,7 +319,6 @@ class task(osv.osv):
|
|||
|
||||
# Compute: effective_hours, total_hours, progress
|
||||
def _hours_get(self, cr, uid, ids, field_names, args, context=None):
|
||||
project_obj = self.pool.get('project.project')
|
||||
res = {}
|
||||
cr.execute("SELECT task_id, COALESCE(SUM(hours),0) FROM project_task_work WHERE task_id IN %s GROUP BY task_id",(tuple(ids),))
|
||||
hours = dict(cr.fetchall())
|
||||
|
@ -632,7 +628,7 @@ class task(osv.osv):
|
|||
Delegate Task to another users.
|
||||
"""
|
||||
task = self.browse(cr, uid, task_id, context=context)
|
||||
new_task_id = self.copy(cr, uid, task.id, {
|
||||
self.copy(cr, uid, task.id, {
|
||||
'name': delegate_data['name'],
|
||||
'user_id': delegate_data['user_id'],
|
||||
'planned_hours': delegate_data['planned_hours'],
|
||||
|
|
Loading…
Reference in New Issue