[REF] *: adapt code to new flush API

closes odoo/odoo#87527

Related: odoo/upgrade#3497
Related: odoo/enterprise#26939
Signed-off-by: Raphael Collet <rco@odoo.com>
This commit is contained in:
Raphael Collet
2022-05-25 18:00:47 +02:00
parent 60a1452a40
commit 6cf8db906f
215 changed files with 692 additions and 703 deletions
+2 -2
View File
@@ -23,6 +23,6 @@ class AuthOAuthProvider(models.Model):
def _neutralize(self):
super()._neutralize()
self.flush()
self.invalidate_cache()
self.flush_model(['enabled'])
self.env.cr.execute("UPDATE auth_oauth_provider SET enabled = false")
self.invalidate_model(['enabled'])