diff --git a/app_common/__manifest__.py b/app_common/__manifest__.py index 2e80ddfe..cd4c01bf 100644 --- a/app_common/__manifest__.py +++ b/app_common/__manifest__.py @@ -39,7 +39,7 @@ { 'name': "odooAi Common Util and Tools,欧度智能基础功能及面板", - 'version': '18.0.24.11.12', + 'version': '18.0.24.12.10', 'author': 'odooai.cn', 'category': 'Extra tools', 'website': 'https://www.odooai.cn', @@ -70,8 +70,8 @@ 12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition. 13. Full Open Source. ========== - 1. - 2. + 1. + 2. 3. 多语言支持 4. 多公司支持 5. Odoo 16, 企业版,社区版,多版本支持 diff --git a/app_common/models/ir_ui_view.py b/app_common/models/ir_ui_view.py index a25941ad..17162922 100644 --- a/app_common/models/ir_ui_view.py +++ b/app_common/models/ir_ui_view.py @@ -14,7 +14,7 @@ def app_relaxng(view_type): """ Return a validator for the given view type, or None. """ if view_type not in _relaxng_cache: # tree, search 特殊 - if view_type in ['tree', 'search']: + if view_type in ['list', 'search']: _file = get_resource_path('app_common', 'rng', '%s_view.rng' % view_type) else: _file = get_resource_path('base', 'rng', '%s_view.rng' % view_type) @@ -27,16 +27,16 @@ def app_relaxng(view_type): _relaxng_cache[view_type] = None return _relaxng_cache[view_type] -# view_validation.relaxng = app_relaxng -# +view_validation.relaxng = app_relaxng + # class View(models.Model): # _inherit = 'ir.ui.view' -# + # def __init__(self, env, ids, prefetch_ids): # # 这里应该是无必要,但为了更安全 # super(View, self).__init__(env, ids, prefetch_ids) # view_validation.relaxng = app_relaxng -# -# # todo: 有可能需要处理增加的 header等标签 -# # 直接重写原生方法 -# # def transfer_node_to_modifiers(node, modifiers, context=None, in_tree_view=False): + + # todo: 有可能需要处理增加的 header等标签 + # 直接重写原生方法 + # def transfer_node_to_modifiers(node, modifiers, context=None, in_tree_view=False): diff --git a/app_common/rng/tree_view.rng b/app_common/rng/list_view.rng similarity index 96% rename from app_common/rng/tree_view.rng rename to app_common/rng/list_view.rng index 770c808c..abdad47b 100644 --- a/app_common/rng/tree_view.rng +++ b/app_common/rng/list_view.rng @@ -20,14 +20,15 @@ - - + + + @@ -55,7 +56,6 @@ - @@ -95,7 +95,7 @@ - + @@ -107,7 +107,7 @@ - + diff --git a/app_common/static/description/index.html b/app_common/static/description/index.html index d8040e5b..61481fcf 100644 --- a/app_common/static/description/index.html +++ b/app_common/static/description/index.html @@ -4,7 +4,7 @@

odooAi Common Util and Tools

Network and media and base tools

-

Lastest update: v18.24.11.12

+

Lastest update: v18.24.12.10