odex25_standard/odex25_base/bi_sales_security/hooks.py

16 lines
399 B
Python

# -*- coding : utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.
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' """)