I've been wanting a new project notebook page and am very pleased with myself that the following code does NOT encounter the "Invalid XML for View Architecture" error. But, it doesn't appear either.
<record id="view_project_project_tree" model="ir.ui.view">
<field name="name">project.project.my.tree</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.edit_project"/>
<field name="arch" type="xml">
<page string="Team" position="after"/>
<page string="My Dates" groups="base.group_extended">
<field colspan="6" name="my_ids" nolabel="1">
<tree string="My Dates Go Here">
<field name="effective" string="Effective"/>
<field name="note" string="Note" select="1"/>
<field string="OT End" name="ot_cp_end" select="1"/>
<field string="PT End" name="pt_cp_end" select="1"/>
<field string="ST End" name="st_cp_end" select="1"/>
</tree>
</field>
</page>
</field>
</record>
How would you add a new notebook page for a Project? I've tried the following changes with the same (no new page) result:
<record id="view_project_project_tree" model="ir.ui.view">
<field name="name">project.project.my.tree</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.edit_project"/>
<field name="arch" type="xml">
<page string="Team" position="after">
<page string="My Dates">
<field colspan="6" name="my_ids" nolabel="1">
<tree string="My Dates Go Here">
<field name="effective" string="Effective"/>
<field name="note" string="Note" select="1"/>
<field string="OT End" name="ot_cp_end" select="1"/>
<field string="PT End" name="pt_cp_end" select="1"/>
<field string="ST End" name="st_cp_end" select="1"/>
</tree>
</field>
</page>
</page>
</field>
</record>
Another great idea yielded the same result:
<record id="view_project_project_tree" model="ir.ui.view">
<field name="name">project.project.my.tree</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.edit_project"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@string='Team']" position="after" >
<page string="My Dates">
<field colspan="6" name="my_ids" nolabel="1">
<tree string="My Dates Go Here">
<field name="effective" string="Effective"/>
<field name="note" string="Note" select="1"/>
<field string="OT End" name="ot_cp_end" select="1"/>
<field string="PT End" name="pt_cp_end" select="1"/>
<field string="ST End" name="st_cp_end" select="1"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
And moving the position in the xpath to "before" yielded the same results.