# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

import ir
import workflow
import module
import res
import report
import tests

def post_init(cr, registry):
    """Rewrite ICP's to force groups"""
    from openerp import SUPERUSER_ID
    from openerp.addons.base.ir.ir_config_parameter import _default_parameters
    ICP = registry['ir.config_parameter']
    for k, func in _default_parameters.items():
        v = ICP.get_param(cr, SUPERUSER_ID, k)
        _, g = func()
        ICP.set_param(cr, SUPERUSER_ID, k, v, g)

@@ -264,16 +264,21 @@
 p import
+ api,
  SUPERUS
@@ -283,16 +283,16 @@
 USER_ID%0A
-
     from
@@ -361,16 +361,65 @@
 rameters
+%0A%0A    env = api.Environment(cr, SUPERUSER_ID, %7B%7D)
 %0A    ICP
@@ -421,24 +421,19 @@
   ICP = 
-registry
+env
 %5B'ir.con
@@ -457,16 +457,18 @@
    for k
+ey
 , func i
@@ -489,16 +489,20 @@
 ameters.
+iter
 items():
@@ -511,16 +511,18 @@
        v
+al
  = ICP.g
@@ -530,35 +530,19 @@
 t_param(
-cr, SUPERUSER_ID, k
+key
 )%0A      
@@ -547,16 +547,21 @@
     _, g
+roups
  = func(
@@ -588,31 +588,22 @@
 ram(
-cr, SUPERUSER_ID, k
+key
 , v
+al
 , g
+roups
 )%0A

complete migration of module base