Submenu wont show anything

I already make a submenu Company Location but when I clicked it it doesn’t show anything:
Screenshot from 2024-08-29 23-09-40

This is my attendance.xml for Company Location:

<record model="ir.action.act_window" id="act_company_geo">
            <field name="name">Company Location</field> <!-- Nama aksi jendela -->
            <field name="res_model">company.geo</field>
        </record>

         <record model="ir.ui.view" id="geo_company_form">
            <field name="model">company.geo</field>
            <field name="type">form</field> 
            <field name="name">geo_form</field>
        </record>      
        
        <record model="ir.action.act_window.view" id="act_geo_company">
            <field name="sequence" eval="20"/> 
            <field name="view" ref="geo_company_form"/> 
            <field name="act_window" ref="act_company_geo"/>
        </record>

        <record model="ir.model.access" id="access_company_geo">
            <field name="model" search="[('model', '=', 'company.geo')]"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
            <field name="perm_create" eval="True"/>
            <field name="perm_delete" eval="True"/>
        </record>

        <menuitem
            action="act_company_geo"
            parent="menu_configuration"
            sequence="20"
            id="menu_geo_company"
            icon="tryton-list"/>

This is my

geo_form.xml

<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form>
    <label name="company"/>
    <field name="company "/>
    <label name="address"/>
    <field name="address"/>
    <label name ="longitude"/>
    <field name="longitude"/>
</form>

It does not seem you have define a tree view so it can only open empty form.

But I just want to show form ui, not tree ui. Like in Production > Configuration

If it is not a singleton, it will be difficult to manage.

Any way did you check the JS console for any error message?

Yeah, something like this.

Screenshot from 2024-08-30 13-39-53

Nothing related, these are expected errors.

I finally added ModelSingleton but it still wont show anything:

 class CompanyGeo(ModelSingleton, ModelSQL, ModelView):
     'Company Geo'
    __name__ = 'company.geo'
     company = fields.Many2One('company.company', "Company", 
               required=True,  help="The company the geolocatong is associated with.")
     address = fields.Char('Address')
     longitude = fields.Float('Longitude', readonly=True)
     latitude = fields.Float('Latitude', readonly=True)

Could you be precise about what you mean?

you said that so i added ModelSingleton in CompanyGeo parameter.

I mean to explain this.

I mean when i clicked the sub menu: Company Location it shown nothing like this:

Well it is strange that there is no error message anywhere.

Hello, still the same problem. When I clicked the submenu I cannot se anything this is the submenu:

Screenshot from 2024-08-31 10-57-46

I cannot open the Company Location:

When I called trytond-admin -c trytond.conf -d database --all it does not show any error.

This is the geo_company.xml

<tryton>
    <data>
        <record model="ir.ui.view" id="geo_company_view_form">
            <field name="model">company.geo</field>
            <field name="type">form</field>
            <field name="name">geo_form</field>
        </record>

        <record model="ir.action.act_window" id="act_geo_company_form">
            <field name="name">Company Location</field>
            <field name="res_model">company.geo</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_geo_company_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="geo_company_view_form"/>
            <field name="act_window" ref="act_geo_company_form"/>
        </record>
        <menuitem
            parent="menu_configuration"
            action="act_geo_company_form"
            sequence="20"
            id="menu_geo_company"
            icon="tryton-list"/>

        <record model="ir.model.access" id="access_company_geo">
            <field name="model" search="[('model', '=', 'company.geo')]"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_company_geo_attendance_admin">
            <field name="model" search="[('model', '=', 'company.geo')]"/>
            <field name="group" ref="group_attendance_admin"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
            <field name="perm_create" eval="True"/>
            <field name="perm_delete" eval="True"/>
        </record>
    </data>
</tryton>