Odoo Help

Welcome!

This community 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.

0

Error installing product_variant_multi in v8

v8
By
Alex
on 5/27/14, 6:23 AM 1,674 views

Trying to install with a fresh db and I am getting this error:

<code>

ParseError: "ValidateError

The field(s) `arch` failed against a constraint: Invalid view definition

 

Error details:

Element '<xpath expr="//form/notebook">' cannot be located in parent view

 

Error context:

View `product.variant.multi.product.template.form`

[view_id: 766, xml_id: n/a, model: product.template, parent_id: 268]" while parsing /opt/odoo/server/addons/product_variant_multi/product_view.xml:197, near

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

            <field name="name">product.variant.multi.product.template.form</field>

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

            <field name="inherit_id" ref="product.product_template_form_view"/>

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

                <data><xpath expr="//field[@name='categ_id']/.." position="after">

                    <group>

                        <field name="is_multi_variants"/>

                    </group>

                </xpath>

                <xpath expr="//form/notebook" position="inside">

                    <page string="Variants">

                        <group colspan="1" col="4" attrs="{'invisible':[('is_multi_variants','=',False)]}">

                            <field name="dimension_type_ids" nolabel="1" colspan="4"/>

                            <button name="add_all_option" string="Add All Options" type="object" colspan="2"/>

                            <field name="value_ids" nolabel="1" colspan="4"/>

                            <field name="variant_model_name" colspan="4"/>

                            <field name="variant_model_name_separator" colspan="4"/>

                            <field name="code_generator" colspan="4"/>

                            <field name="variant_track_production" colspan="4"/>

                            <field name="variant_track_incoming" colspan="4"/>

                            <field name="variant_track_outgoing" colspan="4"/>

                            <field name="do_not_generate_new_variant" colspan="4"/>

                            <field name="do_not_update_variant" colspan="4"/>

                            <button name="button_generate_variants" string="Generate / Update Variants" type="object" colspan="4"/>

                        </group>

                        <field name="variant_ids" string="Variants" nolabel="1" colspan="1">

                            <tree string="Variants">

                                <field name="code"/>

                                <field name="name"/>

                                <field name="variants" string="Dimension Values"/>

                            </tree>

                        </field>

                    </page>

                </xpath>

            </data></field>

        </record>

</code>

Does someone know where could be the error? Thank you.

0
Akos Nadasdi
On 7/2/14, 5:13 AM

you don't need this module anymore in theory in v8

https://www.odoo.com/event/OpenDays-2014-5/track/Multivariants-Products-and-Attributes-in-v8-67

 

 

0

Pascal Tremblay

--Pascal Tremblay--
1312
| 5 2 7
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
On 10/4/14, 7:48 AM

Same issue in the last minute.

 

0
Stefano Del Gobbo
On 7/1/14, 5:27 AM

Same issue, version trunk

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/27/14, 6:23 AM
Seen: 1674 times
Last updated: 3/16/15, 8:10 AM