Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6802 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

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