From 806761eec558cc1c00e99a5df921cfb89d7ce962 Mon Sep 17 00:00:00 2001 From: Raf Geens Date: Fri, 21 May 2021 16:56:36 +0200 Subject: [PATCH] [FIX] developer: correct `cr.execute` signature in ORM doc `cr.execute` takes a single argument which is a list, a tuple, or a dict. --- content/developer/reference/orm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/developer/reference/orm.rst b/content/developer/reference/orm.rst index 6085c4f5b..1b152fd57 100644 --- a/content/developer/reference/orm.rst +++ b/content/developer/reference/orm.rst @@ -517,7 +517,7 @@ cursor for the current database transaction and allows executing SQL directly, either for queries which are difficult to express using the ORM (e.g. complex joins) or for performance reasons:: - self.env.cr.execute("some_sql", param1, param2, param3) + self.env.cr.execute("some_sql", params) Because models use the same cursor and the :class:`~odoo.api.Environment` holds various caches, these caches must be invalidated when *altering* the