跳至内容
菜单
此问题已终结
1 回复
7870 查看

How to add a view in the dashboard through coding. I don't want to add under menus. By clicking on the dashboard app itself i want to view my view.

形象
丢弃
最佳答案

Hi Jithin

It is a good example

https://www.odoo.com/apps/modules/9.0/openeducat_core/

https://www.odoo.com/apps/modules/9.0/openeducat_assignment/

Then open /openeducat_assignment/dashboard/assignment_faculty_dashboard.xml

<record model="ir.ui.view" id="assignment_faculty_dashboard_form_view">
     <field name="name">board.faculty.form</field>
     <field name="model">board.board</field>
     <field name="inherit_id" ref="openeducat_core.board_faculty_form" />
        <field name="arch" type="xml">
            <xpath expr="//board" position="inside">
                 <column>
                    <action name="%(act_op_faculty_assignment)d" string="Assignments to Approve" />
                 </column>
            </xpath>
        </field>
 </record>
形象
丢弃
编写者

Shameem the one you shown is not what i want. I want to add the view into the main dashboard of the odoo through coding.

I have edited my answer

相关帖文 回复 查看 活动
1
12月 24
6363
3
8月 24
7182
4
7月 24
41709
5
4月 23
99768
3
11月 22
4647