0
点赞
收藏
分享

微信扫一扫

odoo15 tree 排序 操作后顺序老是无序改动

滚过红尘说红尘 2022-03-19 阅读 59
python

odoo15 tree 排序 操作后顺序老是无序改动

今天排序排查,花了近一个小时,老是控制不住

一点操作就上下乱动

<tree create="false" default_order='name desc'>

<tree create="false" default_order='name id order_id desc'>

无效

操作修几次位置后,最终找到问题所在

排序以tree中字段从左到右影响,在操作前加两列隐藏字段解决

<xpath expr="//field[@name='name']" position="before">
    <button name="open_mbcs" type="object" string="参数"  class="oe_highlight" attrs="{'invisible':[('state','!=','jcfp')]}"/>
    <button
举报

相关推荐

0 条评论