I have created a module that allows me to add some fields in a new page and now in the same xml file i tried to delete another existing page but it gives me the error that the View inheritance may not use attribute 'string' as a selector.
to specify what i want to delete it's the Inventory page of product.product_template_form_view
here is my code using the xpath expression
<record id="view_product_form_inherit" model="ir.ui.view"> <field name="name">product.template.common.form.inherit</field> <field name="model">product.template</field> <field name="inherit_id" ref="product.product_template_form_view"/> <field name="arch" type="xml"> <data><xpath expr="//page" position="after"> <page name="Sample" string="Caractéristiques"> <group> <field name="etat"/> <field name="famille"/> <field name="description"/> <field name="nb_pierre"/> <field name="carrat"/> <field name="datevt"/> </group> </page> </xpath> <xpath expr="//page[@string='Inventory']" position="replace"/> </data></field> </record>
ParseError: "Invalid view definition
Détails de l'erreur : View inheritance may not use attribute 'string' as a selector.