init 17 部署及app

This commit is contained in:
Ivan Office
2023-11-16 16:13:43 +08:00
parent f747322ae9
commit c9738e08a9
41 changed files with 579 additions and 77 deletions

View File

@@ -27,16 +27,16 @@ def app_relaxng(view_type):
_relaxng_cache[view_type] = None
return _relaxng_cache[view_type]
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):
# 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):