[MIG] init 18.0

This commit is contained in:
Stéphan Sainléger
2026-01-16 16:47:02 +01:00
parent 3757d2c584
commit 89711fed41
29 changed files with 0 additions and 1006 deletions

View File

@@ -1,17 +0,0 @@
from odoo import api, SUPERUSER_ID
def post_init_hook(cr, registry):
"""Loaded after installing the module.
This module's DB modifications will be available.
:param odoo.sql_db.Cursor cr:
Database cursor.
:param odoo.modules.registry.RegistryManager registry:
Database registry, using v7 api.
"""
env = api.Environment(cr, SUPERUSER_ID, {})
portal_views = env['ir.ui.view'].search([('inherit_id.xml_id', '=', 'portal.portal_my_home')])
if portal_views:
for p in portal_views:
p.create_group_from_view()
return True