Can't Access Custom Menu in SAO for New Model

Hi everyone,

I’ve created a new model called xxxx_preappointment and defined its tree and form views, window action, and menu item. The XML records are properly loaded, and I can see the model in the database. However, the menu doesn’t show up in SAO, and I can’t open the action from the interface.

Here’s what I have checked so far:

  1. The model is registered in __init__.py

  2. I’ve updated the module using trytond-admin .

  3. No obvious errors in the server logs or SAO browser console.

Is there anything I might be missing to make the menu and views show up correctly in SAO?

Any guidance would be appreciated!

Thanks in advance

Btw this is my xml

    <record model="ir.ui.view" id="xxxxx_preappointment_form_view">
        <field name="model">xxxxx.salus.preappointment</field>
        <field name="type">form</field>
        <field name="name">xxxxx_salus_preappointment_form</field>
    </record>

    <record model="ir.ui.view" id="xxxxx_preappointment_tree_view">
        <field name="model">xxxxx.salus.preappointment</field>
        <field name="type">tree</field>
        <field name="name">xxxxx_salus_preappointment_tree</field>
    </record>

    <record model="ir.action.act_window" id="xxxxx_action_preappointment">
        <field name="name">Pre-Appointments</field>
        <field name="res_model">xxxxx.salus.preappointment</field>
    </record>

    <record model="ir.action.act_window.view" id="act_preappointment_tree_view">
        <field name="sequence" eval="10"/>
        <field name="view" ref="xxxxx_preappointment_tree_view"/>
        <field name="act_window" ref="xxxxx_action_preappointment"/>
    </record>

    <record model="ir.action.act_window.view" id="act_preappointment_form_view">
        <field name="sequence" eval="20"/>
        <field name="view" ref="xxxxx_preappointment_form_view"/>
        <field name="act_window" ref="xxxxx_action_preappointment"/>
    </record>

    <menuitem action="xxxxx_action_preappointment" icon="xxxxx-list"
    id="xxxxx_conf_preappointment" parent="xxxxx_conf_misc"/>

When I am trying to open from menuitem it got stuck on processing like this

It is because you put a field in a view which does not have a widget to render it.
Usually it is a datetime field on tree view, for these you must set the widget to date or time.