odoo17 新特性

Python版本要求

17.0 要求python版本大于3.10,因此旧版本的python需要升级后才可以使用。

autils

pip-23.3.1 安装autils会出现dateutil找不到的问题

OWL

  • this._super(...arguments)不能再使用, 需要使用super.Fn()

deliver模块重命名

delivey模块命名变更 -> stock_delivery

message_post方法变更

body参数原来接收HTML格式的值,变更为默认接收str或Markdown的格式,如需使用旧格式需要配合body_is_html参数使用.

atts属性和states属性取消

直接使用属性 invisible="python表达式"等。

settings页面写法改变

使用app标签开启一个新app

<app>
    ...
</app>

使用block替代app_setting_block



list视图中的invisbile属性失效

需要使用column_invisible替代

支付模块

删除了payment.icon模型

post_init_hook, uninstall_hook参数形式发生变化

def post_init_hook(cr, registry):
    setup_provider(cr, registry, 'alipay')


def uninstall_hook(cr, registry):
    reset_payment_provider(cr, registry, 'alipay')

现在

def post_init_hook(env):
    setup_provider(env, 'alipay')


def uninstall_hook(env):
    reset_payment_provider(env, 'alipay')

results matching ""

    No results matching ""