21 lines
645 B
Python
21 lines
645 B
Python
# -*-coding:utf-8-*-
|
|
from . import models
|
|
from . import wizard
|
|
|
|
# from odoo import api, SUPERUSER_ID
|
|
# import logging
|
|
# _logger = logging.getLogger(__name__)
|
|
#
|
|
#
|
|
# def _sf_tool_management_post_install(cr, registry):
|
|
# # 这里执行你想要在安装模块时执行的操作,包括调用和执行模型的方法
|
|
# env = api.Environment(cr, SUPERUSER_ID, {})
|
|
#
|
|
# # 获取需要执行方法的模型
|
|
# model_obj = env['sf.machine.table.tool.changing.apply']
|
|
# logging.info('post_install方法执行了')
|
|
# print('post_install方法执行了')
|
|
#
|
|
# # 调用模型方法
|
|
# model_obj.create_tool_change_application()
|