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