diff --git a/post_init_hook.py b/post_init_hook.py index b53d59d..e3be909 100644 --- a/post_init_hook.py +++ b/post_init_hook.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from odoo import SUPERUSER_ID from odoo.api import Environment +from . import import_machine_products import logging _logger = logging.getLogger(__name__) @@ -27,6 +28,12 @@ def run_migration(cr, registry): except Exception as e: _logger.error(f"[OWS] Fehler bei automatischer Felder-Migration: {e}") + + + + import_machine_products.run_import(cr, registry) + + ''' Funktioniert nicht: try: module = env['ir.module.module'].search([('name', '=', 'vvow_einweisungen')], limit=1) diff --git a/scripts/import_machine_products.py b/scripts/import_machine_products.py new file mode 100644 index 0000000..e69de29