prepare ai_base 相关,仅安装,功能待测试

This commit is contained in:
Chill
2024-12-20 18:00:02 +08:00
parent 01a918dd44
commit 4111489121
74 changed files with 1745 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
from odoo import api, fields, models
class IrUiView(models.Model):
_inherit = 'ir.ui.view'
def write(self, vals):
# 处理强制全局, Create时不管
for view in self:
if len(view.page_ids) == 1:
page = view.page_ids[0]
if page.is_force_all:
self = self.with_context(no_cow=1)
return super(IrUiView, self).write(vals)