Product_template, categ_id defined 2 times on form

Bug #1229239 reported by Bastien Dumonceau
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

the field categ_id is defined 2 times on form view : record_id ="product_template_form_view
So when using addons like variant_adavanced_multi that display this form view, this resulting on some misunderstanding when defining a category on the header on the form, it is not save on the categ_id on the header but on the second categ_id

Revision history for this message
Bastien Dumonceau (bdu) wrote :
Download full text (4.0 KiB)

correction proposed, delete the categ_id on the status group (here in comment) :

<record id="product_template_form_view" model="ir.ui.view">
            <field name="name">product.template.product.form</field>
            <field name="model">product.template</field>
            <field name="arch" type="xml">
                <form string="Product Template" version="7.0">
                    <label for="name" class="oe_edit_only"/>
                    <h1><field name="name"/></h1>
                    <label for="categ_id" class="oe_edit_only"/>
                    <h2><field name="categ_id"/></h2>
                    <notebook>
                        <page string="Information">
                        <group>
                            <group string="Product Type">
                                <field name="sale_ok"/>
                            </group>
                            <group string="Procurement">
                                <field name="type"/>
                            </group>

                            <group string="Base Prices">
                                <field name="list_price"/>
                                <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"/>
                                <field name="cost_method"/>
                            </group>

                            <group string="Weights">
                                <field digits="(14, 3)" name="volume" attrs="{'readonly':[('type','=','service')]}"/>
                                <field digits="(14, 3)" name="weight" attrs="{'readonly':[('type','=','service')]}"/>
                                <field digits="(14, 3)" name="weight_net" attrs="{'readonly':[('type','=','service')]}"/>
                            </group>

                            <group name="status" string="Status">
                                <!--field name="categ_id"/-->
                                <field name="state"/>
                                <field name="product_manager"/>
                            </group>

                            <group name="uom" string="Unit of Measure">
                                <field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)" groups="product.group_uom"/>
                                <field name="uom_po_id"/>
                            </group>

                            <group name="uos" groups="product.group_uom" string="Second Unit of Measure">
                                <field name="uos_id"/>
                                <field name="uos_coeff"/>
                                <field name="mes_type"/>
                            </group>
                        </group>
                        </page>
                        <page string="Procurement &amp; Locations">
                            <group>
                                <group name="delay" string="Delays">
                                    <label for="produce_delay"/>
                                    <div>
                                        <field name="produce_delay" class="oe_inline"/> days
                                    </div>
                              ...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.