Skip to Content
Menu
This question has been flagged
1 Reply
6585 Views

Hello,

In "My current timesheet sheet" I want to switch "Summary" and "Attendances".

Can I have a clue to do this in my custom module ?

Thank you

Avatar
Discard
Best Answer

Hi,

Yes, is possible with something like this:

<record id="new_id" model="ir.ui.view">
    <field name="name">new_name</field>
    <field name="model">[name_of_module]r</field>
    <field name="inherit_id" ref="[name_of_module].[id_of_view]"/>
    <field name="arch" type="xml">
    <xpath expr="[path_until_notebook]/notebook" position="replace">
       ....
      changes that you want like first page appear first
      ...
    </xpath>
    </field>
</record>

I think with this you resolve your problems.

Avatar
Discard
Author

Thank you but there is no better solution than rewrite the original notebook in another order ? Something like sequence ?

I've looked to all pages of openerp and there is no sequence for pages. So I suggested this way. But if you discover another way, tell us. Thanks