added import skript for mapping machine to products and trainings

This commit is contained in:
gitea 2025-04-08 21:29:07 +00:00
parent d5d99b4d8d
commit a5e14a07d7
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File