[FIX] stock: more flexible xpath

If you have stock installed before 0322f6e5 and try to install stock_account
today, the installation fails.

Should not rely on a field added after the stable freeze

Fixes #21823
opw-802767
This commit is contained in:
Martin Trigaux
2018-01-30 14:35:25 +01:00
parent 109ecd5205
commit 5ae494f2bb
@@ -43,9 +43,9 @@
<field name="inherit_id" ref="stock.view_stock_return_picking_form"/>
<field name="model">stock.return.picking</field>
<field name="arch" type="xml">
<field name="uom_id" position="after">
<xpath expr="//field[@name='product_return_moves']/tree" position="inside">
<field name="to_refund"/>
</field>
</xpath>
</field>
</record>