purchase_usability: fix perf issue: we can't show a non-computed field in tree view

This commit is contained in:
Alexis de Lattre
2022-01-27 23:40:45 +01:00
parent 2922b19e9e
commit 4e57866115

View File

@@ -41,9 +41,11 @@
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_tree"/>
<field name="arch" type="xml">
<!-- We can't show a non-stored computed field in tree view
otherwise we have perf issues
<field name="state" position="after">
<field name="is_shipped" invisible="not context.get('show_purchase', False)"/>
</field>
</field> -->
<!-- the 'origin' field can be very long ; it can list a lot of MO or OP!
I think limiting the size of the field would not be the best option,
because the info it carries can be interesting. So we just remove it from