re-calculate values @ module install

This commit is contained in:
Frederik Jaeckel 2024-01-20 18:09:03 +01:00
parent 206cd1e0e5
commit 65437bc52e

View file

@ -30,6 +30,16 @@ class ValueStore(ModelSQL):
string='Digits', readonly=True),
'on_change_with_valuedigits')
@classmethod
def __register__(cls, module_name):
super(ValueStore, cls).__register__(module_name)
# clear value-store, re-calc
records = cls.search([])
if records:
cls.delete(records)
cls.maintenance_values()
@classmethod
def __setup__(cls):
super(ValueStore, cls).__setup__()