forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_icecat.xml
68 lines (65 loc) · 2.85 KB
/
product_icecat.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?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="type">tree</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="type">form</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<form string="icecat">
<field name="name" />
<field name="active" />
<notebook colspan="4">
<page string="Icecat">
<field name="username" />
<field name="password" />
</page>
<page string="FTP">
<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" />
</page>
</notebook>
<separator string="Icecat to OpenERP fields" colspan="4" />
<!-- <label string="Configure your mapping values from icecat to OpenERP (only category icecat)" colspan="4"/>-->
<field name="mapline_ids" nolabel="1" colspan="4" mode="tree,form" height="260">
<tree string="Maping Lines">
<field name="name"/>
<field name="field_id"/>
</tree>
<form string="Maping Lines">
<field name="name"/>
<field name="model_id" invisible="1"/>
<field name="field_id" domain="[('model_id', '=', model_id)]"/>
</form>
</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>