remove EreusePrice of public info of devices

This commit is contained in:
Cayo Puigdefabregas 2021-02-12 10:29:23 +01:00
parent 43e782e986
commit df42c27f20

View file

@ -217,7 +217,7 @@ class Device(Thing):
"""Actions than we want show in public page as traceability log section """Actions than we want show in public page as traceability log section
:return a list of actions: :return a list of actions:
""" """
hide_actions = ['Price'] hide_actions = ['Price', 'EreusePrice']
actions = [ac for ac in self.actions if not ac.t in hide_actions] actions = [ac for ac in self.actions if not ac.t in hide_actions]
actions.reverse() actions.reverse()
return actions return actions