mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix bg_color
This commit is contained in:
@@ -17,16 +17,16 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': "App mrp Manufacturing Orders browse by state workcenter navigator",
|
'name': "App mrp Manufacturing Orders browse by state workcenter navigator",
|
||||||
'version': '12.19.04.22',
|
'version': '12.19.04.28',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Base',
|
'category': 'Base',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
'license': 'LGPL-3',
|
'license': 'LGPL-3',
|
||||||
'sequence': 2,
|
'sequence': 2,
|
||||||
'summary': """
|
'summary': """
|
||||||
Browse mrp order, Manufacturing Orders by Materials Availability, work center. Use for parent children tree list kanban navigator.
|
Browse mrp order, Manufacturing Orders by Materials Availability, work center.
|
||||||
Easy to navigator and browse any data. Support Search more list, kanban, pivot, graph view.
|
Easy to navigator and browse any data. Support Search more list, kanban, pivot, graph view.
|
||||||
ztree widget.Hierarchy Tree.Parent Children relation tree..
|
ztree widget.Hierarchy Tree.
|
||||||
""",
|
""",
|
||||||
'description': """
|
'description': """
|
||||||
Superbar, zTree widget.
|
Superbar, zTree widget.
|
||||||
|
|||||||
@@ -15,6 +15,9 @@
|
|||||||
# https://www.sunpop.cn/odoo10_developer_document_offline/
|
# https://www.sunpop.cn/odoo10_developer_document_offline/
|
||||||
# description:
|
# description:
|
||||||
|
|
||||||
|
from odoo import api, SUPERUSER_ID, _
|
||||||
|
|
||||||
|
|
||||||
def pre_init_hook(cr):
|
def pre_init_hook(cr):
|
||||||
try:
|
try:
|
||||||
# 更新企业版指向
|
# 更新企业版指向
|
||||||
@@ -24,5 +27,16 @@ def pre_init_hook(cr):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def post_init_hook(cr, registry):
|
def post_init_hook(cr, registry):
|
||||||
|
# a = check_module_installed(cr, ['app_web_superbar','aaaaa'])
|
||||||
pass
|
pass
|
||||||
# cr.execute("")
|
# cr.execute("")
|
||||||
|
|
||||||
|
def check_module_installed(cr, modules):
|
||||||
|
# modules 输入参数是个 list,如 ['base', 'sale']
|
||||||
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||||
|
installed = False
|
||||||
|
m = env['ir.module.module'].sudo().search([('name', 'in', modules), ('state', 'in', ['installed', 'to install', 'to upgrade'])])
|
||||||
|
if len(m) == len(modules):
|
||||||
|
installed = True
|
||||||
|
return len(m)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user