Hello,
I want display form views in other form view. for that I am using <action> but nothing will display.but same thing can be done in odoo v10 . it is not done in odoo v12. what is reason? following is my code.
question:
Is it possible? if not any alternative way?
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="test_form" model="ir.ui.view">
<field name="name">form</field>
<field name="model">demo.demo</field>
<field name="arch" type="xml">
<form>
<div>
<action name="%(survey.action_survey_form)d" string="survey create" />
<action name="%(survey.action_survey_page_form)d" string="page create" />
</div>
</form>
</field>
</record>
<record id="test_action" model="ir.actions.act_window">
<field name="name">action</field>
<field name="res_model">demo.demo</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="test_form"/>
</record>
<menuitem id="main" name="survey create" action="test_action" />
</data>
</odoo>
Multiple form and tree views: https://goo.gl/Vpb2Fv