mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
init 17 部署及app
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user