From bfea408eb317b63e250a5f01e1dcb072c8cea899 Mon Sep 17 00:00:00 2001 From: PSala Date: Mon, 6 Oct 2025 20:48:04 +0200 Subject: [PATCH] Add new duplicated index message on skip creatino conditions --- orm_mongodb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orm_mongodb.py b/orm_mongodb.py index d321e91..a1695c1 100644 --- a/orm_mongodb.py +++ b/orm_mongodb.py @@ -83,6 +83,8 @@ def _auto_init(self, cr, context=None): except pymongo.errors.OperationFailure as e: if e.details and "An existing index has the same name as the requested index" in e.details.get("errmsg", " "): pass + elif e.details and "An equivalent index" in e.details.get("errmsg", " "): + pass elif e.details and "already exists with different options" in e.details.get("errmsg", " "): pass else: