So I'm trying to remove a page on a form ("Tickets" from an event).
Since it has an attribute "name" I thought I could just remove it by doing:
<page name="registrations" position="replace"/>
But I kept getting the message that it couldn't locate that name in the parent view.
So I tried using an xpath expr:
<xpath expr="//form/sheet/notebook/page[1]" position="replace"/>
And keep getting the same error, how can I remove a page from a notebook then? This is version 10.
Complete XML:
<record id="event_add_weeks" model="ir.ui.view">
<field name="inherit_id" ref="event.view_event_form"/>
<field name="model">event.event</field>
<field name="arch" type="xml">
<xpath expr="//page[@name='registrations']" position="replace"/>
</field>
</record>
view1
that does not have a page.view2
inheritsview1
to add a page. You try to remove page by inheritingview1
but you can't find the page there becauseview1
does not have a page. Solution : inheritview2
to delete the page. – Majikat