Browse Source

create kpi history as sudo

pull/267/head
Jordi Ballester Alomar 6 years ago
committed by Adrià Gil Sorribes
parent
commit
a48717c608
  1. 2
      kpi/models/kpi.py

2
kpi/models/kpi.py

@ -158,7 +158,7 @@ class KPI(models.Model):
for obj in self:
history_vals = obj._get_kpi_value()
history_obj = self.env['kpi.history']
history_obj.create(history_vals)
history_obj.sudo().create(history_vals)
return True
@api.multi

Loading…
Cancel
Save