You could do it like this:
<record model="ir.actions.act_window" id="action_jobapplication_application"> <field name="name">JobApplication Application</field> <field name="type">ir.actions.act_window</field> <field name="res_model">hr.job</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click here to create a Job.</p></field> </record> <record model="ir.actions.act_window.view" id="action_jobapplication_application_tree"> <field name="sequence" eval="1"/> <field name="view_mode">tree</field> <field name="view_id" ref="jobapplication_tree"/> <field name="act_window_id" ref="action_jobapplication_application"/> </record> <record model="ir.actions.act_window.view" id="action_jobapplication_application_form"> <field name="sequence" eval="2"/> <field name="view_mode">form</field> <field name="view_id" ref="jobapplication_form"/> <field name="act_window_id" ref="action_jobapplication_application"/> </record>
source: https://www.odoo.com/forum/help-1/question/how-we-define-treeview-and-formiew-both-in-ir-actions-act-window-in-odoo-10-115542
Tambahkan Komentar