~romaindeheele/openobject-addons/extra-trunk

« back to all changes in this revision

Viewing changes to product_icecat/product_icecat.xml

  • Committer: Jordi Esteve
  • Date: 2010-12-20 08:34:37 UTC
  • Revision ID: jesteve@zikzakmedia.com-20101220083437-b7motey64o4p8h07
[ADD] Product Icecat: Import XML from icecat.biz to products

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
<data>
 
4
    <!-- Configuration -->
 
5
    <record model="ir.ui.view" id="product_icecat_tree">
 
6
        <field name="name">product.icecat.tree</field>
 
7
        <field name="model">product.icecat</field>
 
8
        <field name="type">tree</field>
 
9
        <field name="priority" eval="8"/>
 
10
        <field name="arch" type="xml">
 
11
        <tree string="icecat">
 
12
            <field name="name"/>
 
13
            <field name="username"/>
 
14
            <field name="active"/>
 
15
        </tree>
 
16
        </field>
 
17
    </record>
 
18
 
 
19
    <record model="ir.ui.view" id="product_icecat_form">
 
20
        <field name="name">product.icecat.form</field>
 
21
        <field name="model">product.icecat</field>
 
22
        <field name="type">form</field>
 
23
        <field name="priority" eval="8"/>
 
24
        <field name="arch" type="xml">
 
25
        <form string="icecat">
 
26
            <field name="name" />
 
27
            <field name="active" />
 
28
                    <notebook colspan="4">
 
29
                            <page string="Icecat">
 
30
                    <field name="username" />
 
31
                    <field name="password" />
 
32
                </page>
 
33
                            <page string="FTP">
 
34
                    <field name="ftp" /><newline />
 
35
                    <field name="ftpip" attrs="{'required':[('ftp','=',True)]}" />
 
36
                    <field name="ftpdirectory" attrs="{'required':[('ftp','=',True)]}" />
 
37
                    <field name="ftpusername" attrs="{'required':[('ftp','=',True)]}" />
 
38
                    <field name="ftppassword" attrs="{'required':[('ftp','=',True)]}" />
 
39
                    <field name="ftpurl" attrs="{'required':[('ftp','=',True)]}" />
 
40
                                    <button name="check_ftp" string="Check FTP" colspan="4" type="object" />
 
41
                </page>
 
42
            </notebook>
 
43
            <separator string="Icecat to OpenERP fields" colspan="4" />
 
44
<!--            <label string="Configure your mapping values from icecat to OpenERP (only category icecat)" colspan="4"/>-->
 
45
            <field name="mapline_ids" nolabel="1" colspan="4" mode="tree,form" height="260">
 
46
                <tree string="Maping Lines">
 
47
                    <field name="name"/>
 
48
                    <field name="field_id"/>
 
49
                </tree>
 
50
                <form string="Maping Lines">
 
51
                    <field name="name"/>
 
52
                    <field name="model_id" invisible="1"/>
 
53
                    <field name="field_id" domain="[('model_id', '=', model_id)]"/>
 
54
                </form>
 
55
            </field>
 
56
        </form>
 
57
        </field>
 
58
    </record>
 
59
 
 
60
    <record model="ir.actions.act_window" id="action_product_icecat">
 
61
        <field name="name">Icecat Configuration</field>
 
62
        <field name="res_model">product.icecat</field>
 
63
        <field name="view_mode">tree,form</field>
 
64
    </record>
 
65
 
 
66
    <menuitem id="product_icecat" name="Icecat Configuration" parent="product.prod_config_main" action="action_product_icecat"/>
 
67
</data>
 
68
</openerp>