当前位置: 首页 > news >正文

odoo17 小变更3 Warning、 “attrs “和 “states “不再用

odoo17 小变更

1、Warning

 from odoo.exceptions import ValidationError,Warning
ImportError: cannot import name 'Warning' from 'odoo.exceptions' (D:\od172406\odoo\exceptions.py)

2、自 17.0 版起,不再使用 "attrs "和 "states "属性。

View error context:

<form string="Equipment Status"><header /><sheet><widgetname="web_ribbon"title="Archived"bg_color="bg-danger"attrs="{'invisible': [('active', '=', True)]}"/>
attrs="{'invisible': [('show_alert', '!=', True)]}"改为:invisible="not show_alert"
<attribute name="attrs">{'invisible':[('status_id','!=','报废')]}</attribute>改为

3、Arch 中使用了禁止的 owl 指令 (t-raw).

http://www.lryc.cn/news/379082.html

相关文章:

  • Unity3d 游戏暂停(timeScale=0)引起的deltaTime关联的系列问题解决
  • 服务端代码编写中MySql大小写在Java中报错问题解决
  • CRMEB 多店商品详情页装修说明
  • Redis-使用 jedis 操作数据
  • 简说PIP换源
  • django学习入门系列之第三点《CSS基础样式介绍2》
  • 分布式光纤测温DTS在工程现场中稳定性与可靠性如何?
  • PHP多线程模块parallel的编译安装和多线程编程演示
  • 记录grid布局属性
  • 12.爬虫---PyMysql安装与使用
  • VS2022遇到的两个问题
  • 【Android14 ShellTransitions】(六)SyncGroup完成
  • 技术管理转型之战:决策之道-管理中的智慧与策略
  • Shell脚本:条件语句(if、case)
  • 在Linux上为Windows目标配置Qt交叉编译
  • Introduction to linear optimization 第 2 章课后题答案 11-15
  • Java——包
  • Pipeline知识小记
  • postman国内外竞争者及使用详解分析
  • 人工智能对决:ChatGLM与ChatGPT,探索发展历程
  • 探索Python元类的奥秘及其应用场景
  • C语言基础关键字的含义和使用方法
  • 【Golang - 90天从新手到大师】Day09 - string
  • 网络安全与区块链技术:信任与安全的融合
  • MySQL之复制(九)
  • 【面试干货】 Java 中的 HashSet 底层实现
  • 爬虫经典案例之爬取豆瓣电影Top250(方法二)
  • 如何优化React应用的性能?
  • css文字镂空加描边
  • python数据分析与可视化