Add `sudo()` to call `get_param` where necessary, and make the web client use a controller instead of directly accessing parameters.
16 lines
368 B
Python
16 lines
368 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
import ir
|
|
import module
|
|
import res
|
|
import report
|
|
import tests
|
|
|
|
def post_init(cr, registry):
|
|
"""Rewrite ICP's to force groups"""
|
|
from odoo import api, SUPERUSER_ID
|
|
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
env['ir.config_parameter'].init(force=True)
|