Skip to Content
Menu
This question has been flagged
1 Reply
1030 Views

 i added  a field binary  on variant tap  What should i make  with it technically of  through function in

odoo

 i use odoo 10 community

thanks for all....

Avatar
Discard
Best Answer

Hi Ahmed, 

If I am getting it right then you want to show all the data which a product have

Then you inherit the variant action like below code



<record id="product.product_variant_action" model="ir.actions.act_window">

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

            <field name="type">ir.actions.act_window</field>

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

            <field name="context">{'search_default_product_tmpl_id': [active_id], 'default_product_tmpl_id': active_id}</field>

            <field name="search_view_id" ref="product_search_form_view"/>             

            <field name="view_ids" 

                   eval="[(5, 0, 0),

                          (0, 0, {'view_mode': 'tree'}),

                          (0, 0, {'view_mode': 'form', 'view_id': ref('product.product_normal_form_view')}), 

                          (0, 0, {'view_mode': 'kanban'})]"/>

             <field name="help" type="html">

              <p class="oe_view_nocontent_create">

                Click to define a new product.

              </p><p>

                You must define a product for everything you sell, whether it's

                a physical product, a consumable or a service you offer to

                customers.

              </p><p>

                The product form contains information to simplify the sale

                process: price, notes in the quotation, accounting data,

                procurement methods, etc.

              </p>

            </field>

 </record>

Thanks

Anisha Bahukhandi

Technical Content Writer

Webkul Softwares

Avatar
Discard