Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
8299 Näkymät

Can anyone say, how could we create dashboard for a view under My Dashboard menu? I need xml code of that. Can anyone help me out of this?



<?xml version="1.0"?>

<openerp>

<data>

    


       <record model="ir.ui.view" id="board_sales_purchases">

            <field name="name">Sales and Purchases</field>

            <field name="model">board.board</field>

            <field name="type">form</field>

            <field name="arch" type="xml">

            <form string="Sales and Purchase">

                <hpaned>

                    <child1>

                        <action string="Sales" name="%(action_invoice_tree2)d"

                            colspan="2" />   

                    </child1>

                </hpaned>


            </form>

        </field>


   </record>


  <record model="ir.actions.act_window" id="action_invoices_board">

        <field name="name">Sales and Purchases</field>

        <field name="res_model">board.board</field>

        <field name="view_type">form</field>

        <field name="view_mode">form</field>

        <field name="usage">menu</field>

        <field name="view_id" ref="board_sales_purchases" />

  </record>

  <menuitem id="menu_action_invoices_board" parent="board.menu_board_my_dash" action="action_invoices_board"/>

</data>

</openerp>



The above is the code, but it is not working. It is showing blank menu.

Avatar
Hylkää

Are You want Form View or Dashboard?

Check out this link :'- https://webkul.com/blog/creating-odoo-custom-dashboard/

Not v11, make necessary changes if needed

Tekijä

@Niyas Raphy, Actually this dashboard is working in Odoo 10, but not in Odoo 11. But the code is almost same in both the versions. So do not have an idea how to solve this.

@Abhishek H Menon, i am facing same issue. can you find any solution? if yes please share with me.