!4568 Merge branch 'dev' of gitee.com:jinan-pengyusen-data/gzth into dev
Merge pull request !4568 from 李鹏宇/dev
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import controllers
|
||||
from . import models
|
||||
from . import wizard
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
'description': '''
|
||||
''',
|
||||
'author': 'pengyuthon',
|
||||
'version': '17.0.1.2.1',
|
||||
'version': '3.1',
|
||||
'category': 'Human Resources/Attendances',
|
||||
'sequence': 240,
|
||||
'website': 'https://www.pengyuthon.com',
|
||||
@@ -83,5 +83,6 @@
|
||||
},
|
||||
'installable': True,
|
||||
'application': True,
|
||||
'post_init_hook':'recompute_my_model_fields',
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# migrations/17.0.1.1/post-migration.py
|
||||
import logging
|
||||
|
||||
from odoo import api, SUPERUSER_ID
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
def migrate(cr, version):
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
records = env['planning.slot'].search([])
|
||||
_logger.info(f'更新模块planning.slot的display_name字段')
|
||||
if records:
|
||||
records._compute_display_name()
|
||||
Reference in New Issue
Block a user