update app_common 15

This commit is contained in:
Chill
2023-09-28 11:55:36 +08:00
parent bac7284354
commit 0fb33974f7
15 changed files with 260 additions and 92 deletions

View File

@@ -32,8 +32,9 @@ view_validation.relaxng = app_relaxng
class View(models.Model):
_inherit = 'ir.ui.view'
def __init__(self, *args, **kwargs):
super(View, self).__init__(*args, **kwargs)
def __init__(self, env, ids, prefetch_ids):
# 这里应该是无必要,但为了更安全
super(View, self).__init__(env, ids, prefetch_ids)
view_validation.relaxng = app_relaxng
# todo: 有可能需要处理增加的 header等标签