最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Struggling with customizing a dashboard on Odoo 18 - Stack Overflow

programmeradmin3浏览0评论

I need someone help me to solve this problem. I currently have an issue with the localhost Odoo. I use Docker to use Odoo app on localhost. The problem is that when I click upgrade on my app, it drives me to discuss App which is not what I want. What I want to see is a timesheet with product data on my App, there is no issue with installing or upgrading. You can view my module in the zip file.

I have made a module and published on localhost. What I expect is to see my customized timesheet with product data

// dashboard_views.xml

<!-- filepath: c:\Users\dober\Desktop\factoryTracking\factory-product-tracking\FactoryProductTrackingSystem\odoo\addons\product_tracking_module\views\dashboard_views.xml -->
<odoo>
    <record id="view_factory_product_dashboard" model="ir.ui.view">
        <field name="name">factory.product.dashboard</field>
        <field name="model">factory.product</field>
        <field name="arch" type="xml">
            <form string="Product Dashboard">
                <sheet>
                    <group>
                        <field name="name"/>
                        <field name="assemble_date"/>
                        <field name="manufacturing_plant"/>
                        <field name="assemble_country"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <!-- Define the action -->
    <record id="action_factory_product_dashboard" model="ir.actions.act_window">
        <field name="name">Product Dashboard</field>
        <field name="res_model">factory.product</field>
        <field name="view_mode">form</field>
        <field name="view_id" ref="view_factory_product_dashboard"/>
    </record>

    <!-- Create a menu item -->
    <menuitem id="menu_factory_product_dashboard" name="Product Dashboard"
              parent="base.menu_custom" action="action_factory_product_dashboard"/>
</odoo>

I need someone help me to solve this problem. I currently have an issue with the localhost Odoo. I use Docker to use Odoo app on localhost. The problem is that when I click upgrade on my app, it drives me to discuss App which is not what I want. What I want to see is a timesheet with product data on my App, there is no issue with installing or upgrading. You can view my module in the zip file.

I have made a module and published on localhost. What I expect is to see my customized timesheet with product data

// dashboard_views.xml

<!-- filepath: c:\Users\dober\Desktop\factoryTracking\factory-product-tracking\FactoryProductTrackingSystem\odoo\addons\product_tracking_module\views\dashboard_views.xml -->
<odoo>
    <record id="view_factory_product_dashboard" model="ir.ui.view">
        <field name="name">factory.product.dashboard</field>
        <field name="model">factory.product</field>
        <field name="arch" type="xml">
            <form string="Product Dashboard">
                <sheet>
                    <group>
                        <field name="name"/>
                        <field name="assemble_date"/>
                        <field name="manufacturing_plant"/>
                        <field name="assemble_country"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <!-- Define the action -->
    <record id="action_factory_product_dashboard" model="ir.actions.act_window">
        <field name="name">Product Dashboard</field>
        <field name="res_model">factory.product</field>
        <field name="view_mode">form</field>
        <field name="view_id" ref="view_factory_product_dashboard"/>
    </record>

    <!-- Create a menu item -->
    <menuitem id="menu_factory_product_dashboard" name="Product Dashboard"
              parent="base.menu_custom" action="action_factory_product_dashboard"/>
</odoo>
Share Improve this question asked Mar 18 at 17:02 BillBill 1
Add a comment  | 

1 Answer 1

Reset to default 0

well, if you meant that, you want to set your custom action view from your own module,
you can set it up yourself according to the user as follows:

1. Go to "Settings" app / module
2. On navbar, click "Users & Companies"
3. From the dropdown, click "Users"
4. Click the "Preferences" tab
5. Set the "Home Action" to the module relevant to you

(reference)

here in my example, I changed the initial home action to open Employees instead of Discuss (default):

发布评论

评论列表(0)

  1. 暂无评论