Skip to Content
Menu
This question has been flagged
2797 Views

i try to open new simplified form to create new project while clicking on create button in kanban view but it doesn't work.Any help plz

<record id="project_view_form_simplified" model="ir.ui.view">
<field name="name">project.project.view.form.simplified</field>
<field name="model">project.project</field>
<field name="arch" type="xml">
<form string="Project">
<sheet>
<group>
<group>
<field name="name" class="o_project_name oe_inline"
string="Project Name" placeholder="e.g. Office Party"/>
</group>
<group name='options' invisible="1">
<field name="use_tasks"/>
</group>
</group>
<footer>
<button string="Create" name="close_dialog" type="object" class="btn-primary"/>
<button string="Discard" class="btn-default" special="cancel"/>
</footer>

</sheet>
</form>
</field>
</record>

<record id="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_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="project_view_form_simplified"/>
<field name="target">new</field>
</record>
<record id="view_project_kanban_inherit" model="ir.ui.view">
<field name="name">project_kanban_inherit</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.view_project_kanban"/>
<field name="arch" type="xml">
<xpath expr="//kanban" position="attributes">
<attribute name="quick_create">True</attribute>
</xpath>
<xpath expr="//kanban" position="attributes">
<attribute name="on_create">module_name.open_create_project</attribute>
</xpath>
</field>
</record>

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 22
1588
1
Dec 19
4146
3
Dec 17
5470
1
Jul 20
3753
0
May 18
1906