Browse Source

[FIX] Fix PEP8 errors after running 'flake8 . --ignore E501,F401'

pull/510/head^2
Maxime Chambreuil 11 years ago
parent
commit
b05f696885
  1. 8
      mgmtsystem_kpi/mgmtsystem_kpi.py

8
mgmtsystem_kpi/mgmtsystem_kpi.py

@ -320,13 +320,13 @@ class mgmtsystem_kpi(orm.Model):
for obj in self.browse(cr, uid, ids):
if obj.periodicity_uom == 'hour':
new_date = datetime.now()+relativedelta(hours=+obj.periodicity)
new_date = datetime.now() + relativedelta(hours=+obj.periodicity)
elif obj.periodicity_uom == 'day':
new_date = datetime.now()+relativedelta(days=+obj.periodicity)
new_date = datetime.now() + relativedelta(days=+obj.periodicity)
elif obj.periodicity_uom == 'week':
new_date = datetime.now()+relativedelta(weeks=+obj.periodicity)
new_date = datetime.now() + relativedelta(weeks=+obj.periodicity)
elif obj.periodicity_uom == 'month':
new_date = datetime.now()+relativedelta(months=+obj.periodicity)
new_date = datetime.now() + relativedelta(months=+obj.periodicity)
values = {
'next_execution_date': new_date.strftime('%Y-%m-%d %H:%M:%S'),

Loading…
Cancel
Save