MIG eradicate_quick_create

This commit is contained in:
Alexis de Lattre
2019-07-17 10:24:49 +02:00
parent 5a72d2b1b9
commit 0bd3b0412c
3 changed files with 5 additions and 8 deletions

View File

@@ -1,3 +1 @@
# -*- coding: utf-8 -*-
from . import model

View File

@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
# © 2014-2016 Akretion (http://www.akretion.com)
# Copyright 2014-2019 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
{
'name': 'Eradicate Quick Create',
'version': '10.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Tools',
'license': 'AGPL-3',
'summary': 'Disable quick create on all objects',

View File

@@ -1,14 +1,14 @@
# -*- coding: utf-8 -*-
# © 2014-2016 Akretion (http://www.akretion.com)
# Copyright 2014-2019 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields
from odoo import api, fields, models
class IrModel(models.Model):
_inherit = 'ir.model'
@api.model_cr
def init(self):
'''Activate 'avoid_quick_create' on all existing models'''
self._cr.execute(