← Back to team overview

openerp-india team mailing list archive

[Bug 1229239] Re: Product_template, categ_id defined 2 times on form

 

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>
                                    <field name="warranty"/>
                                </group>
                            </group>

                        </page>
                        <page string="Suppliers">
                            <field name="seller_ids"/>
                        </page>
                        <page string="Descriptions">
                            <separator string="Internal Description"/>
                            <field name="description"/>
                            <separator string="Sale Description"/>
                            <field name="description_sale"/>
                            <separator string="Purchase Description"/>
                            <field name="description_purchase"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1229239

Title:
  Product_template, categ_id defined 2 times on form

Status in OpenERP Addons (modules):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1229239/+subscriptions


References