forked from openlabs/magento_integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product.xml
122 lines (116 loc) · 5.99 KB
/
product.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="product_category_magento_unclassified" model="product.category">
<field name="name">Unclassified Magento Products</field>
</record>
<record id="product_normal_form_view" model="ir.ui.view">
<field name="name">product.normal.form.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Magento" groups="base.group_user" >
<group>
<label for="magento_product_type"/>
<h3><field name="magento_product_type"/></h3>
</group>
<group col="4">
<separator colspan="2" string="Magento IDs"/>
<separator colspan="2" string="Price Tiers"/>
<newline/>
<field name= "magento_ids" colspan="2" nolabel="1">
<form string="Magento IDs" version="7.0">
<header>
<button name="update_product_from_magento"
type='action' class="oe_highlight" string="Update from Magento"/>
</header>
<group>
<group>
<label for="magento_id"/>
<h3><field name="magento_id"/></h3>
</group>
<group>
<label for="website"/>
<h3><field name="website"/></h3>
</group>
</group>
</form>
<tree editable="bottom">
<field name="magento_id"/>
<field name="website"/>
<button name="update_product_from_magento" string="Update from Magento"
type="object" icon="STOCK_REFRESH" />
</tree>
</field>
<field name= "price_tiers" colspan="2" nolabel="1">
<form string="Price Tiers" version="7.0">
<group>
<group>
<label for="quantity"/>
<h3><field name="quantity"/></h3>
</group>
</group>
</form>
<tree editable="bottom">
<field name="quantity"/>
</tree>
</field>
</group>
</page>
</notebook>
</field>
</record>
<record id="product_category_form_view" model="ir.ui.view">
<field name="name">product.category.form.inherit</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='parent']" position="after">
<notebook position="inside" colspan="4">
<page string="Magento" groups="base.group_user" >
<field name= "magento_ids" colspan="2">
<form string="Magento IDs" version="7.0">
<group>
<group>
<label for="magento_id"/>
<h3><field name="magento_id"/></h3>
</group>
<group>
<label for="instance"/>
<h3><field name="instance"/></h3>
</group>
</group>
</form>
<tree>
<field name="magento_id"/>
<field name="instance"/>
</tree>
</field>
</page>
</notebook>
</xpath>
</field>
</record>
<record model="ir.cron" id="ir_cron_import_catalog">
<field name="name">Import Catalog</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="active" eval="True"/>
<field name="model" eval="'magento.instance.website'"/>
<field name="function" eval="'import_catalog'"/>
<field name="args" eval="'()'"/>
</record>
<record model="ir.cron" id="ir_cron_export_inventory">
<field name="name">Export Inventory</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="True"/>
<field name="model" eval="'magento.instance.website'"/>
<field name="function" eval="'export_inventory'"/>
<field name="args" eval="'()'"/>
</record>
</data>
</openerp>