oca-technical/odoo-bringout-oca-server-tools-attachment_unindex_content/attachment_unindex_content/hooks.py
2025-08-29 15:43:03 +02:00

3 lines
161 B
Python

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