MIG eradicate_quick_create
This commit is contained in:
@@ -1,3 +1 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from . import model
|
from . import model
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# Copyright 2014-2019 Akretion France (http://www.akretion.com)
|
||||||
# © 2014-2016 Akretion (http://www.akretion.com)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Eradicate Quick Create',
|
'name': 'Eradicate Quick Create',
|
||||||
'version': '10.0.1.0.0',
|
'version': '12.0.1.0.0',
|
||||||
'category': 'Tools',
|
'category': 'Tools',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Disable quick create on all objects',
|
'summary': 'Disable quick create on all objects',
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# Copyright 2014-2019 Akretion France (http://www.akretion.com)
|
||||||
# © 2014-2016 Akretion (http://www.akretion.com)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# 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):
|
class IrModel(models.Model):
|
||||||
_inherit = 'ir.model'
|
_inherit = 'ir.model'
|
||||||
|
|
||||||
|
@api.model_cr
|
||||||
def init(self):
|
def init(self):
|
||||||
'''Activate 'avoid_quick_create' on all existing models'''
|
'''Activate 'avoid_quick_create' on all existing models'''
|
||||||
self._cr.execute(
|
self._cr.execute(
|
||||||
|
|||||||
Reference in New Issue
Block a user