Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1926 Widoki

I have extended by using the following code. But it is not working.



tree,kanban,form


Awatar
Odrzuć
Najlepsza odpowiedź

Hello Shajahan,

In your extended View, Add the attribute

"Below code is added in comment"


here, ref has a 'id' of Tree View.

Please update both act_window when modifying one (open_view_project_all or open_view_project_all_group_stage) as one or the other is used in the menu menu_project

Hope this will help you.

Thanks & Regards,

Email:   odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

Awatar
Odrzuć

Here is the code :

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

Autor

Thank you very much Jainesh , It works...:-)

Najlepsza odpowiedź

Hi,

Try to use this code , this help to override the default actions


<record id="project.open_view_project_all" model="ir.actions.act_window">

    <field name="name">Projects</field>

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

            <field name="domain">[]</field>

<field name="view_mode">tree,kanban,form</field>

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

<field name="search_view_id" ref="view_project_project_filter"/>

            <field name="help" type="html">

<p class="o_view_nocontent_smiling_face">

                    No projects found. Let's create one!

                </p>

                <p>

                    Create projects to organize your tasks. Define a different workflow for each project.

                </p>

            </field>

</record>



Hope it helps

Awatar
Odrzuć
Autor

the above one gives error:
when I added the below code it works.
<field name="view_id" ref="view_project"/> (earlier I had given ref="view_project_kanban")
===================the below is working code========
<record id="project.open_view_project_all" model="ir.actions.act_window">
<field name="view_mode">tree,kanban,form</field>
<field name="view_id" ref="view_project"/>
</record>
===================

Powiązane posty Odpowiedzi Widoki Czynność
1
mar 25
2873
1
sty 24
3427
0
gru 23
1460
0
sie 25
234
1
lip 25
814