From ad6966f1778786de34673c73897bb683a0c7c89a Mon Sep 17 00:00:00 2001 From: Ivan Kropotkin Date: Sat, 22 Jun 2024 18:37:29 +0200 Subject: [PATCH] :ambulance: sync: fix _update_param --- sync/__manifest__.py | 2 +- sync/doc/changelog.rst | 5 +++++ sync/models/sync_project.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sync/__manifest__.py b/sync/__manifest__.py index 145ba6d7..3a9780d8 100644 --- a/sync/__manifest__.py +++ b/sync/__manifest__.py @@ -7,7 +7,7 @@ "name": "Sync 🪬 Studio", "summary": """Join the Amazing 😍 Community ⤵️""", "category": "VooDoo ✨ Magic", - "version": "16.0.13.0.0", + "version": "16.0.13.0.1", "application": True, "author": "Ivan Kropotkin", "support": "info@odoomagic.com", diff --git a/sync/doc/changelog.rst b/sync/doc/changelog.rst index 161ad525..01e65bf4 100644 --- a/sync/doc/changelog.rst +++ b/sync/doc/changelog.rst @@ -1,3 +1,8 @@ +`13.0.1` +------- + +- **Fix:** update params updating on existing records + `13.0.0` ------- diff --git a/sync/models/sync_project.py b/sync/models/sync_project.py index 04aef94f..be8fe4c1 100644 --- a/sync/models/sync_project.py +++ b/sync/models/sync_project.py @@ -362,6 +362,7 @@ def gen2csv(generator): SECRETS[p.key] = p.value def _update_param(key, value): + PARAMS[key] = value for p in self.param_ids: if p.key == key: p.value = value @@ -373,7 +374,6 @@ def _update_param(key, value): "value": value, } ) - PARAMS[key] = value PARAMS = AttrDict(_update_param) for p in self.param_ids: