3
0
Fork 0

FIX comments PEP8

7.0
Markus Schneider 2014-11-20 10:25:51 +01:00
parent 4726c966fe
commit 581bfbed26
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ class tile(orm.Model):
act_obj = self.pool.get('ir.actions.act_window') act_obj = self.pool.get('ir.actions.act_window')
result = act_obj.read(cr, uid, [tile_object.action_id.id], result = act_obj.read(cr, uid, [tile_object.action_id.id],
context=context)[0] context=context)[0]
#FIXME: restore original Domain + Filter would be better # FIXME: restore original Domain + Filter would be better
result['domain'] = tile_object.domain result['domain'] = tile_object.domain
return result return result
@ -85,9 +85,9 @@ class tile(orm.Model):
} }
def add(self, cr, uid, vals, context=None): def add(self, cr, uid, vals, context=None):
#TODO: check if string # TODO: check if string
if 'model_id' in vals: if 'model_id' in vals:
# need to relace model_name with its id # need to replace model_name with its id
model_ids = self.pool.get('ir.model').search(cr, uid, model_ids = self.pool.get('ir.model').search(cr, uid,
[('model', '=', [('model', '=',
vals['model_id'])]) vals['model_id'])])