xml - In Odoo 17, where can customize the menu when the gear icon is clicked - Stack Overflow

admin2025-05-01  0

In an Odoo 17 custom app which was passed on to me, there is a need to change the spelling and update the menu list in the dropdown. However, I cannot find in the template's xml code where it is. I am using the Visual Studio Code's Find in Files using the keywords found using the Inspect tool of the browser. Here is are the images:

Here is the XML snippet of the page:

<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record model="ir.ui.view" id="freight_shipment_form_view">
            <field name="name">freight.shipment.form.view</field>
            <field name="model">freight.shipment</field>
            <field name="arch" type="xml">
                <form edit="stage_id != 5">
                    <header>
                        <field name="id" invisible="1"/>
                        <field name="quotation_id" invisible="1"/>
                        <field name="stage_id" widget="statusbar"/>
                        <!-- Button to move from Draft to Ready -->
                        <button name="action_submit_draft" string="Submit Draft" type="object" class="btn-primary"
                                invisible="stage_id != 1"/>
                        <button name="action_submit_ready" string="Start Progress" type="object" class="btn-primary"
                                invisible="stage_id != 2"/>
                        <button name="action_submit_in_progress" string="Start Transit" type="object" class="btn-primary"
                                invisible="stage_id != 3"/>
                        <button name="action_submit_in_transit" string="Mark as Delivered" type="object" class="btn-primary"
                                invisible="stage_id != 4"/>
                        <button name="action_generate_airway_bill" type="object" string="Generate HAWB" class="btn-primary" 
                                invisible="transport != 'air'"/>
                        <button name="action_generate_mawb" type="object" string="Generate MAWB" class="btn-primary" 
                                invisible="transport != 'air'"/>
                        <button name="action_generate_new_hbl" type="object" string="Generate HBL" class="btn-primary" 
                                invisible="transport != 'ocean'"/>
                        <field name="company_id" invisible="1"/>
                        <field name="currency_id" invisible="1"/>
                    </header>
                    <sheet>
                        <div class="oe_button_box" name="button_box">
                            <button class="oe_stat_button" name="button_services_quotes" type="object"
                                    icon="fa-folder-open-o" invisible="not quotation_id">
                                <field name="service_quote_count" string="Quotations" widget="statinfo" icon="fa-usd"/>
                            </button>
                            <button class="oe_stat_button" name="button_services_bookings" type="object"
                                    icon="fa-thumb-tack">
                                <field name="service_booking_count" string="Booking" widget="statinfo" icon="fa-usd"/>
                            </button>
                            <button class="oe_stat_button" name="button_services" type="object" icon="fa-tasks">
                                <field name="service_count" string="Services" widget="statinfo" icon="fa-usd"/>
                            </button>
                            <button class="oe_stat_button" name="button_customer_invoices" type="object" icon="fa-edit">
                                <field name="invoice_count" string="Invoices" widget="statinfo" icon="fa-usd"/>
                            </button>
                            <button class="oe_stat_button" name="button_vendor_bills" type="object" icon="fa-money">
                                <field name="vendor_bill_count" string="Vendor Bills" widget="statinfo" icon="fa-usd"/>
                            </button>
                            <button class="oe_stat_button" type="object" name="action_freight_document" icon="fa-file">
                                <field name="document_count" string='Documents' widget="statinfo"/>
                            </button>
                        </div>
...

Based on the screen, it should be before/beside the div button_box but it was not there. I think this is an inherited view from Odoo, where and how can I check it out to modify?

转载请注明原文地址:http://anycun.com/QandA/1746110386a91810.html