From 3220a752615ced941c1312c46676b8cd769d30eb Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Tue, 20 Aug 2024 15:14:43 +0100 Subject: [PATCH] [FIX] base_revision: UX, open Form if only one revision record --- base_revision/models/base_revision.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base_revision/models/base_revision.py b/base_revision/models/base_revision.py index 4007b05144..5b2741e57c 100644 --- a/base_revision/models/base_revision.py +++ b/base_revision/models/base_revision.py @@ -123,4 +123,6 @@ def create_revision(self): "domain": "[('id', 'in', %s)]" % revision_ids, "target": "current", } + if len(revision_ids) == 1: + action.update({"view_mode": "form", "res_id": revision_ids[0]}) return action