From 0c86f2c258fa08f7a0623a846c834c72cae6a96e Mon Sep 17 00:00:00 2001 From: kobfolson Date: Mon, 2 Oct 2023 12:41:28 +0100 Subject: [PATCH] filter out newid in records --- concurrency_warning/models/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/concurrency_warning/models/models.py b/concurrency_warning/models/models.py index 2446920..3252c4f 100644 --- a/concurrency_warning/models/models.py +++ b/concurrency_warning/models/models.py @@ -17,6 +17,10 @@ def _run_action_poke_multi(self, eval_context=None): if not records: return False + for record in records: + if not record.id: + return False + self.env["bus.bus"]._sendone( "broadcast", "poke",