[IMP]remove unwanted methods
bzr revid: mba@tinyerp.com-20140108050517-q4erb4277erwvoh4
This commit is contained in:
parent
8eb7fb82de
commit
fe44b42f76
|
@ -823,18 +823,11 @@ class task(osv.osv):
|
|||
_order = "priority, sequence, date_start, name, id"
|
||||
|
||||
def set_kanban_state(self, cr, uid, ids, state, context=None):
|
||||
print 'state>>>>>>>>>>',ids
|
||||
print 'state>>>>>>>>>>',state
|
||||
self.write(cr, uid, ids, {'kanban_state': state }, context=context);
|
||||
|
||||
def set_priority(self, cr, uid, ids, priority, context=None):
|
||||
return self.write(cr, uid, ids, {'priority' : str(priority)}, context=context)
|
||||
|
||||
def set_normal_priority(self, cr, uid, ids, *args):
|
||||
"""Set task priority to normal
|
||||
"""
|
||||
return self.write(cr, uid, ids, {'priority' : '2'})
|
||||
|
||||
def _check_recursion(self, cr, uid, ids, context=None):
|
||||
for id in ids:
|
||||
visited_branch = set()
|
||||
|
@ -1019,16 +1012,6 @@ class task(osv.osv):
|
|||
def set_remaining_time_10(self, cr, uid, ids, context=None):
|
||||
return self.set_remaining_time(cr, uid, ids, 10.0, context)
|
||||
|
||||
def set_kanban_state_blocked(self, cr, uid, ids, context=None):
|
||||
return self.write(cr, uid, ids, {'kanban_state': 'blocked'}, context=context)
|
||||
|
||||
def set_kanban_state_normal(self, cr, uid, ids, context=None):
|
||||
return self.write(cr, uid, ids, {'kanban_state': 'normal'}, context=context)
|
||||
|
||||
def set_kanban_state_done(self, cr, uid, ids, context=None):
|
||||
self.write(cr, uid, ids, {'kanban_state': 'done'}, context=context)
|
||||
return False
|
||||
|
||||
def _store_history(self, cr, uid, ids, context=None):
|
||||
for task in self.browse(cr, uid, ids, context=context):
|
||||
self.pool.get('project.task.history').create(cr, uid, {
|
||||
|
|
|
@ -370,15 +370,6 @@ class project_issue(osv.Model):
|
|||
# Stage management
|
||||
# -------------------------------------------------------
|
||||
|
||||
def set_kanban_state_blocked(self, cr, uid, ids, context=None):
|
||||
return self.write(cr, uid, ids, {'kanban_state': 'blocked'}, context=context)
|
||||
|
||||
def set_kanban_state_normal(self, cr, uid, ids, context=None):
|
||||
return self.write(cr, uid, ids, {'kanban_state': 'normal'}, context=context)
|
||||
|
||||
def set_kanban_state_done(self, cr, uid, ids, context=None):
|
||||
return self.write(cr, uid, ids, {'kanban_state': 'done'}, context=context)
|
||||
|
||||
def stage_find(self, cr, uid, cases, section_id, domain=[], order='sequence', context=None):
|
||||
""" Override of the base.stage method
|
||||
Parameter of the stage search taken from the issue:
|
||||
|
|
Loading…
Reference in New Issue