mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
create kpi history as sudo
This commit is contained in:
committed by
flachica
parent
488d85eb90
commit
a9a03359a0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user