Commit c448a886 authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

insert: do not forget to pass the metadata

parent e0530dcc30a8
......@@ -57,13 +57,16 @@ class TimeSerie(BaseTS):
super().__init__(*a, **kw)
self.auto_store = BaseTS(namespace='{}-automatic'.format(self.namespace))
def insert(self, cn, ts, name, author, _insertion_date=None, manual=False):
def insert(self, cn, ts, name, author,
_insertion_date=None, manual=False):
if manual:
diff = ts
# insert & compute diff over automatic
diff = self.auto_store.insert(
cn, ts, name, author,
if diff is None:
......@@ -72,6 +75,7 @@ class TimeSerie(BaseTS):
# insert the diff over automatic or the manual edit into synthetic
a = super().insert(
cn, diff, name, author,
return a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment