Comment 3 for bug 1251831

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>