From 3db9f0f09694ca2d815c11b11d85b8193e71f8ff Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 25 Aug 2021 18:25:17 +0200 Subject: [PATCH] MIG eradicate_quick_create to v14 --- eradicate_quick_create/__manifest__.py | 8 ++++---- eradicate_quick_create/hooks.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eradicate_quick_create/__manifest__.py b/eradicate_quick_create/__manifest__.py index 9717af7..c92cfc7 100644 --- a/eradicate_quick_create/__manifest__.py +++ b/eradicate_quick_create/__manifest__.py @@ -1,9 +1,9 @@ -# Copyright 2014-2019 Akretion France (http://www.akretion.com) +# Copyright 2014-2021 Akretion France (http://www.akretion.com) # @author Alexis de Lattre { 'name': 'Eradicate Quick Create', - 'version': '12.0.2.0.0', + 'version': '14.0.1.0.0', 'category': 'Tools', 'license': 'AGPL-3', 'summary': 'Disable quick create on all objects', @@ -13,7 +13,7 @@ Eradicate Quick Create Disable quick create on all objects of Odoo. -This new version of the module uses the module *web_m2x_options* from the OCA *web* project instead of the module *base_optional_quick_create* from the OCA project *server-ux*. +This module uses the module *web_m2x_options* from the OCA *web* project (in v10 and lower, it was using the module *base_optional_quick_create* from the OCA project *server-ux*). This module has been written by Alexis de Lattre from Akretion . """, @@ -21,5 +21,5 @@ This module has been written by Alexis de Lattre from Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -11,7 +11,7 @@ def web_m2x_options_create(cr, registry): config_parameter = env['ir.config_parameter'].search( [('key', '=', 'web_m2x_options.create')]) if config_parameter and config_parameter.value != 'False': - config_parameter.value = 'False' + config_parameter.write({'value': 'False'}) else: env['ir.config_parameter'].create({ 'key': 'web_m2x_options.create',