old_contents: # -*- 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)
  
new_contents: # -*- 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 api, SUPERUSER_ID
      from openerp.addons.base.ir.ir_config_parameter import _default_parameters
  
      env = api.Environment(cr, SUPERUSER_ID, {})
      ICP = env['ir.config_parameter']
      for key, func in _default_parameters.iteritems():
          val = ICP.get_param(key)
          _, groups = func()
          ICP.set_param(key, val, groups)
  
subject: complete migration of module base