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