2 menu items with same name are appearing in menu?


i just created a record in xml for my model but i am not sure why 2 menu are appearing

here is my code

    <record model="ir.ui.view" id="gnuhealth_institution_superuser_form">
        <field name="model">gnuhealth.institution.superuser</field>
        <field name="type">form</field>
        <field name="name">gnuhealth_institution_superuser_form</field>
    <record model="ir.ui.view" id="gnuhealth_institution_superuser_tree">
        <field name="model">gnuhealth.institution.superuser</field>
        <field name="type">tree</field>
        <field name="name">gnuhealth_institution_superuser_tree</field>

    <record model="ir.action.act_window" id="action_gnuhealth_institution_superuser">
        <field name="name">Institution Superuser</field>
        <field name="res_model">gnuhealth.institution.superuser</field>

    <record model="ir.action.act_window.view" id="act_gnuhealth_institution_superuser_tree">
        <field name="sequence" eval="10"/>
        <field name="view" ref="gnuhealth_institution_superuser_tree"/>
        <field name="act_window" ref="action_gnuhealth_institution_superuser"/>
    <record model="ir.action.act_window.view" id="act_gnuhealth_institution_superuser_form">
        <field name="sequence" eval="20"/>
        <field name="view" ref="gnuhealth_institution_superuser_form"/>
        <field name="act_window" ref="action_gnuhealth_institution_superuser"/>

   <menuitem action="action_gnuhealth_institution_superuser"
        id="gnuhealth_institution_superuser" icon="gnuhealth-list"
        parent="gnuhealth_menu" sequence="1"/>

I guess you have changed the id of the menu entry. So this can happen if the update process can not delete the previous menu record. There should be a warning about that in the process log.

yes that’s what exactly happened
how can i delete the previous record ? do i have to do it manually in postgres ?

When developing it is usually simpler to recreate a new DB.
Otherwise you need to figure out why is trytond not able to delete the record and try to fix the root cause. In last resort you will have to delete the record yourself from the database.