added import skript for mapping machine to products and trainings
This commit is contained in:
parent
d5d99b4d8d
commit
a5e14a07d7
|
|
@ -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)
|
||||
|
|
|
|||
0
scripts/import_machine_products.py
Normal file
0
scripts/import_machine_products.py
Normal file
Loading…
Reference in New Issue
Block a user