From 95eaaf7e7146631224b03b2dfb91975fb5285d59 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Mon, 2 May 2022 13:25:21 +0000 Subject: [PATCH] [FIX] account: create sequence index for account.move MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit missed call of the super method leads to missed initialization of mixins. Particually, the sequence indexes [1] were not created, which led to perofrmance issues [2] [1] https://github.com/odoo/odoo/blame/8b8c94ca90c9d1faa4d735d357af316736b43562/addons/account/models/sequence_mixin.py#L38-L39 [2] opw-2825975 closes odoo/odoo#90351 X-original-commit: aa5778582a332a481339483c4d432d1c535dbc83 Signed-off-by: William André (wan) --- addons/account/models/account_move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index d7b1b3c4ab1..7cddac9421e 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -50,6 +50,7 @@ class AccountMove(models.Model): _sequence_index = "journal_id" def init(self): + super().init() self.env.cr.execute(""" CREATE INDEX IF NOT EXISTS account_move_to_check_idx ON account_move(journal_id) WHERE to_check = true;