[IMP] attachment_unindex_content: black, isort, prettier

pull/2563/head
Randall Castro 2021-07-02 21:06:57 -06:00 committed by Rodrigo Serrano
parent b6c0acb8a6
commit fad58840f1
3 changed files with 12 additions and 17 deletions

View File

@ -2,18 +2,16 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Attachment Unindex Content',
'summary': 'Disable indexing of attachments',
'version': '12.0.1.0.0',
'author': 'Vauxoo, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/server-tools',
'maintainers': ['moylop260', 'ebirbe'],
'license': 'AGPL-3',
'category': 'Tools',
'depends': [
'base',
],
'installable': True,
'application': False,
'post_init_hook': 'post_init_hook',
"name": "Attachment Unindex Content",
"summary": "Disable indexing of attachments",
"version": "13.0.1.0.0",
"author": "Vauxoo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-tools",
"maintainers": ["moylop260", "ebirbe"],
"license": "AGPL-3",
"category": "Tools",
"depends": ["base"],
"installable": True,
"application": False,
"post_init_hook": "post_init_hook",
}

View File

@ -1,5 +1,3 @@
def post_init_hook(cr, registry):
"""Clear the indexed data for records already in database"""
cr.execute("UPDATE ir_attachment SET index_content=NULL")

View File

@ -1,3 +1,2 @@
- Moises López <moylop260@vauxoo.com>
- Erick Birbe <erick@vauxoo.com>