~serpent-consulting-services/addons-vauxoo/7.0-fix-aging-due-mx-dependency

« back to all changes in this revision

Viewing changes to project_task_work/model/project_task_work.py

  • Committer: Moises Lopez
  • Date: 2014-10-03 08:04:16 UTC
  • mfrom: (1144.1.3 70-addons-vauxoo)
  • Revision ID: moylop260@vauxoo.com-20141003080416-yquvsxfq5i4cy8ux
[MERGE] [FIX] trailing whitespace pylint error C0303 and
[FIX] autopep8 ignoring E501 & E128 and
[FIX] reimported

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
class project_task(osv.Model):
30
30
    _inherit = 'project.task'
31
31
 
32
 
 
33
32
    def _get_issue(self, cr, uid, ids, fieldname, arg, context=None):
34
33
        if context is None:
35
34
            context = {}
69
68
    def _get_project(self, cr, uid, ids, fieldname, arg, context=None):
70
69
        if context is None:
71
70
            context = {}
72
 
        res = {}.fromkeys(ids,None)
 
71
        res = {}.fromkeys(ids, None)
73
72
        ids = self.exists(cr, uid, ids, context=context)
74
73
        for ptw_brw in self.browse(cr, uid, ids, context=context):
75
74
            res[ptw_brw.id] = \
86
85
    def _get_issue(self, cr, uid, ids, fieldname, arg, context=None):
87
86
        if context is None:
88
87
            context = {}
89
 
        res = {}.fromkeys(ids,None)
 
88
        res = {}.fromkeys(ids, None)
90
89
        ids = self.exists(cr, uid, ids, context=context)
91
90
        pi_obj = self.pool.get('project.issue')
92
91
        ptw_brws = self.browse(cr, uid, ids, context=context)
102
101
    def _get_partner(self, cr, uid, ids, fieldname, arg, context=None):
103
102
        if context is None:
104
103
            context = {}
105
 
        res = {}.fromkeys(ids,None)
 
104
        res = {}.fromkeys(ids, None)
106
105
        ids = self.exists(cr, uid, ids, context=context)
107
106
        for ptw_brw in self.browse(cr, uid, ids, context=context):
108
107