diff --git a/shopfloor_base/data/server_action.xml b/shopfloor_base/data/server_action.xml
index 712142d2ad..840f99726b 100644
--- a/shopfloor_base/data/server_action.xml
+++ b/shopfloor_base/data/server_action.xml
@@ -6,8 +6,7 @@
code
-
-records.filtered(lambda x: not x.registry_sync).write({"registry_sync": True})
+ records.write({"registry_sync": True})