update superbar for date type

This commit is contained in:
ivan deng
2023-03-05 09:54:01 +08:00
parent 3d69fd85c4
commit fba65795ac
5 changed files with 10 additions and 5 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等标签