odex30_standard/odex30_base/branch/hooks.py

16 lines
383 B
Python

# -*- encoding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import SUPERUSER_ID
from odoo import api
def post_init_hook(cr, registry):
"""
website menu hide
"""
env = api.Environment(cr, SUPERUSER_ID, {})
cr.execute("""
update ir_model_data set noupdate=False where
model ='ir.rule' """)