7.0 Icecat module configuration view error

Bug #1251831 reported by extento
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Vauxoo Addons
Confirmed
Medium
Jose Antonio Morales Ponce(vauxoo) - - http://www.vauxoo.com

Bug Description

Hi,

Just installed Icecat module on OpenERP 7 server with all dependencies.

Click on menu "Icecat configuration" then "Create".

OpenERP throw me an error :
"View type form'is not supported in One2Many."

Any help ??

Thanks

Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

This module is not completly migrated to version 7.

Can you enlight me what version are you trying?

Regards.

Changed in addons-vauxoo:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Jose Antonio Morales Ponce(vauxoo) - - http://www.vauxoo.com (josemoralesp)
Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

Sorry I didn't read correctly the message, I confirm this issue, solution will be landed soon!

Regards

Revision history for this message
krocket (krocketor) wrote :

Hi,

if you are interested, I corrected the file product_icecat.xml.

regards.

<?xml version='1.0' encoding='utf-8'?>
<openerp>
<data>
    <!-- Configuration -->
    <record model="ir.ui.view" id="product_icecat_tree">
        <field name="name">product.icecat.tree</field>
        <field name="model">product.icecat</field>
        <field name="priority" eval="8"/>
        <field name="arch" type="xml">
        <tree string="icecat">
            <field name="name"/>
            <field name="username"/>
            <field name="active"/>
        </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="product_icecat_form">
        <field name="name">product.icecat.form</field>
        <field name="model">product.icecat</field>
        <field name="priority" eval="8"/>
        <field name="arch" type="xml">
        <form string="icecat" version="7.0">
            <field name="name"/>
            <notebook colspan="4">
                <page string="Icecat">
                    <group>
                    <field name="username"/>
                    <field name="password"/>
                    </group>
                 </page>
                <page string="FTP">
                    <group>
                    <field name="ftp"/><newline/>
                    <field name="ftpip" attrs="{'required':[('ftp','=',True)]}"/>
                    <field name="ftpdirectory" attrs="{'required':[('ftp','=',True)]}"/>
                    <field name="ftpusername" attrs="{'required':[('ftp','=',True)]}"/>
                    <field name="ftppassword" attrs="{'required':[('ftp','=',True)]}"/>
                    <field name="ftpurl" attrs="{'required':[('ftp','=',True)]}"/>
                    <button name="check_ftp" string="Check FTP" colspan="4" type="object"/>
                   </group>
                   </page>
            </notebook>
            <separator string="Icecat to OpenERP fields" colspan="4"/>
<!-- <label string="Configure your mapping values from icecat to Open
ERP (only category icecat)" colspan="4"/>-->
            <field name="mapline_ids" nolabel="1" colspan="4" height="260">
                    <field name="name"/>
                    <field name="model_id" invisible="1"/>
                    <field name="field_id" domain="[('model_id', '=', model_id)]
"/>
            </field>
        </form>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_product_icecat">
        <field name="name">Icecat Configuration</field>
        <field name="res_model">product.icecat</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem id="product_icecat" name="Icecat Configuration" parent="product.prod_config_main" action="action_product_icecat"/>
</data>
</openerp>

Revision history for this message
krocket (krocketor) wrote :

Hi,

there is also a problem in the script wizard_product_icecat.py, if @Presentation_Value no exist ...
line 153, I added a try, except:

for prod in doc.xpathEval ('/ / ProductFeature'):
             try:
                 prodFeatureId.append(prod.xpathEval('@CategoryFeatureGroup_ID'[0].content+"#"+
                 prod.xpathEval('@Presentation_Value')[0].content)
             except IndexError:
                 prodFeatureId.append (prod.xpathEval (@ CategoryFeatureGroup_ID ') [0]. glad + "#" + "no info")

regards

Revision history for this message
forstbier (forstbier) wrote :

Hi,

same error after this changes:

"View type form'is not supported in One2Many."

does it works on somebody's installation?

thanks

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.