diff --git a/apps/wpm/scripts/batch_bxerp.py b/apps/wpm/scripts/batch_bxerp.py index c06f7b4f..d198a6b7 100644 --- a/apps/wpm/scripts/batch_bxerp.py +++ b/apps/wpm/scripts/batch_bxerp.py @@ -90,6 +90,8 @@ def main(batch: str, mgroup_obj:Mgroup=None): del old_data[item] else: old_data = {} + else: + old_data = {} old_data.update(data) batchst.data = old_data if batchst.first_time is None or (res["first_time"] and res["first_time"] < batchst.first_time):