تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
7556 أدوات العرض

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
ديسمبر 24
5674
3
أغسطس 24
6499
4
يوليو 24
40642
5
أبريل 23
97626
3
نوفمبر 22
3885