Browse Source

FIX comments PEP8

pull/54/head
Markus Schneider 10 years ago
parent
commit
581bfbed26
  1. 2
      web_dashboard_tile/tile.py

2
web_dashboard_tile/tile.py

@ -87,7 +87,7 @@ 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'])])

Loading…
Cancel
Save