跳至內容
選單
此問題已被標幟
1 回覆
1497 瀏覽次數

when I try to create project from kanban view - create button, It is showing the quick form, But instead I want to call the normal project creation form.

how to inherit this by extending the corresponding view?

odoo  17


頭像
捨棄
最佳答案

Hi,

Create an XML file in your custom_module and overwrite the action 'open_create_project'.

You can go through the below code:

    <record id="project.open_create_project" model="ir.actions.act_window">
        <field name="name">Create a Project</field>
        <field name="res_model">project.project</field>
        <field name="view_mode">form</field>
        <field name="view_id" ref="project.edit_project"/>
        <field name="target">current</field>
        <field name="context">{"default_allow_billable": 0}</field>
    </record>

Hope it helps.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 15
9943
1
7月 24
1503
2
5月 24
1725
3
1月 24
2694
0
3月 22
2843