我有一列似乎排序不正确。我不能通过单击列名来按序列号排序。它看起来是随机排序的。谈到其他列,比如quantity、product_creation_date或product,我可以通过单击quantity或product_creation_date列来对desc/asc进行排序。
我找不到哪里不对劲..
<record model="ir.ui.view" id="view_stock_quant_splius_tree">
<field name="name">stock.quant.splius.tree</field>
<field name="model">stock.quant</field>
<field eval="1" name="priority"/>
<field name="arch" type="xml">
<tree string="Quants" create="0" delete="0">
<field name="location_id"/>
<field name="product_id"/>
<field name="qty"/>
<field name="product_uom_id" string="Uom"/>
<field name="lot_id"/>
<field name="in_date"/>
</tree>
</field>
</record>sorting by clicking on column names
发布于 2016-05-27 14:05:00
据我所知,您不能对关系字段(o2m、m2o、m2m)进行排序。
https://stackoverflow.com/questions/37464844
复制相似问题