Hi,
I want to remove the products field from the template_view_tree by inheriting the view with:
<record model="ir.ui.view" id="template_view_tree">
    <field name="model">product.template</field>
    <field name="inherit" ref="product.template_view_tree"/>
    <field name="name">template_tree</field>
</record>
and the view:
<?xml version="1.0"?>
<data>
    <xpath expr="//field[@name='products']" position="replace" />
</data>
now for the template view this works, but when I open the variants view I get:
No elements found for expression "//field[@name='products']"
I guess because the original variant view already inherits from the template view and removes itself the field and then it can not be removed again.
How could I solve this in my custom module? Can I somehow change the order such that first the variant view uses the original template view and only afterwards my change is applied?
Kind regards