Browse Source

[FIX] flake8;

pull/180/head
Sylvain LE GAL 10 years ago
parent
commit
4af98c7be0
  1. 11
      web_dashboard_tile/models/tile_tile.py

11
web_dashboard_tile/models/tile_tile.py

@ -48,7 +48,7 @@ class TileTile(Model):
r.active = False r.active = False
r.count = 0 r.count = 0
r.computed_value = 0 r.computed_value = 0
helper = ''
r.helper = ''
if ima_obj.check(r.model_id.model, 'read', False): if ima_obj.check(r.model_id.model, 'read', False):
# Compute count item # Compute count item
model = self.env[r.model_id.model] model = self.env[r.model_id.model]
@ -104,12 +104,9 @@ class TileTile(Model):
domain = fields.Text(default='[]') domain = fields.Text(default='[]')
action_id = fields.Many2one( action_id = fields.Many2one(
comodel_name='ir.actions.act_window', string='Action') comodel_name='ir.actions.act_window', string='Action')
count=fields.Integer(
compute='_get_tile_info', readonly=True) #readonly usefull ?
computed_value=fields.Float(
compute='_get_tile_info', readonly=True) #readonly usefull ?
helper=fields.Char(
compute='_get_tile_info', readonly=True) #readonly usefull ?
count = fields.Integer(compute='_get_tile_info')
computed_value = fields.Float(compute='_get_tile_info')
helper = fields.Char(compute='_get_tile_info')
field_function = fields.Selection(selection=[ field_function = fields.Selection(selection=[
('min', 'Minimum'), ('min', 'Minimum'),
('max', 'Maximum'), ('max', 'Maximum'),

Loading…
Cancel
Save