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).