odex30_standard/odex30_base/bi_sales_security/hooks.py

10 lines
289 B
Python

# -*- coding : utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.
def post_init_hook(env):
"""
website menu hide
"""
model_data = env['ir.model.data']
model_data.search([('model', '=', 'ir.rule')]).write({'noupdate': False})