mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update app_common 15
This commit is contained in:
@@ -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等标签
|
||||
|
||||
Reference in New Issue
Block a user