Odoo Help

0

0
3 Answers
2
Pranav P S
12/9/18, 2:13 AM

You can define a new form view for product.product and add that form view id in product_id field.

eg:

Product new form view:--

<record model="ir.ui.view" id="view_product_form">

        <field name="name">Product Form</field>

        <field name="model">product.product</field>

        <field name="type">form</field>

        <field name="arch" type="xml">

    <form string="Melodies Form">

                <field name="name"/>

                <field name="category"/>

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


Change in your vr melody form:--


<record model="ir.ui.view" id="view_vr_melody_form">

        <field name="name">Video Rental Melodies Form</field>

        <field name="model">vr.melody</field>

        <field name="type">form</field>

        <field name="arch" type="xml">

    <form string="Melodies Form">

                <field name="name"/>

                <field name="year"/>

<field name="author"/>

<field name="product_id" context="{'form_view_ref': 'view_product_form'}"/>

</form>

        </field>

    </record>

1
Ramon
12/10/18, 4:11 PM

Hi, 

Thank you so much.

Is working!!

1 Comment
Pranav P S
12/11/18, 11:12 PM

Please accept the answer if you found its working.

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now