~openerp-commiter/openobject-addons/trunk-extra-addons

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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?xml version="1.0"?>
<terp>
<data>
	<record model="ir.ui.view" id="view_esale_joomla_form">
		<field name="name">esale_joomla.web.form</field>
		<field name="model">esale_joomla.web</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="eSale Web Shop">
				<notebook>
					<page string="General Informations">
						<separator string="Web Shop Info" colspan="4"/>
						<field name="name" select="1" colspan="3"/>
						<field name="url" widget="url" required="1"/>
						<field name="active" select="1"/>
						<field name="shop_id" select="1" required="1"/>
						<field name="language_id" select="1" required="1"/>
						<separator string="Configuration Instructions" colspan="4"/>
						<label string="After having completed the above data, proceed to the taxes, languages and categories mapping. Go to the next tabs, import data form the website and complete the third column." align="0.0" colspan="4"/>
					</page>
					<page string="Taxes Mapping">
						<button type="object" string="Initial Import of Taxes" colspan="4" name="tax_import"/>
						<separator string="Taxes" colspan="4"/>
						<field colspan="4" name="tax_ids" nolabel="1">
							<tree editable="bottom">
								<field name="name"/>
								<field name="esale_joomla_id" readonly="1"/>
								<field name="tax_id"/>
							</tree>
						</field>
						<separator string="Taxes included" colspan="4"/>
						<field colspan="4" name="taxes_included_ids" nolabel="1"/>
					</page>
					<page string="Categories Mapping">
						<button type="object" string="Synchronise products categories" colspan="4" name="category_import"/>
						<field colspan="4" name="category_ids" nolabel="1">
							<tree editable="bottom">
								<field name="name"/>
								<field name="esale_joomla_id" readonly="1"/>
								<field name="category_id"/>
								<field name="include_childs"/>
							</tree>
						</field>
					</page>
				</notebook>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="view_esale_joomla_tree">
		<field name="name">esale_joomla.web.tree</field>
		<field name="model">esale_joomla.web</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="eSale Web Shop">
				<field name="name"/>
				<field name="url"/>
				<field name="active"/>
				<field name="shop_id"/>
				<field name="language_id"/>
			</tree>
		</field>
	</record>

	<record model="ir.actions.act_window" id="action_esale_joomla_form">
		<field name="res_model">esale_joomla.web</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_esale_joomla_tree"/>
	</record>
	<menuitem name="Sales Management/Esale/Definition/Web Shop" id="menu_action_esale_joomla_web" action="action_esale_joomla_form" groups="admin"/>

	<record model="ir.ui.view" id="view_esale_joomla_product_form">
		<field name="name">esale_joomla.product.form</field>
		<field name="model">esale_joomla.product</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="eSale product">
				<field name="name" select="1"/>
				<field name="esale_joomla_id" select="1"/>
				<field name="product_id" select="1"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="view_esale_joomla_product_tree">
		<field name="name">esale_joomla.product.tree</field>
		<field name="model">esale_joomla.product</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="eSale product">
				<field name="name" select="1"/>
				<field name="esale_joomla_id" select="1"/>
				<field name="product_id" select="1"/>
			</tree>
		</field>
	</record>

	<record model="ir.actions.act_window" id="action_esale_joomla_product_form">
		<field name="res_model">esale_joomla.product</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="view_id" ref="view_esale_joomla_product_tree"/>
	</record>
	<menuitem name="Sales Management/Esale/Definition/Web Product" id="menu_action_esale_joomla_product" action="action_esale_joomla_product_form" groups="admin"/>

	<record model="ir.ui.view" id="view_order_tree">
		<field name="name">esale_joomla.order.tree</field>
		<field name="model">esale_joomla.order</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Sales Orders">
				<field name="name"/>
				<field name="date_order"/>
				<field name="epartner_invoice_id"/>
				<field name="partner_id"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_order_form">
		<field name="name">esale_joomla.order.form</field>
		<field name="model">esale_joomla.order</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="eSale Order">
				<notebook>
					<page string="Order Line">
						<field name="name" select="1"/>
						<field name="date_order" select="1"/>
						<field name="epartner_invoice_id" select="2"/>
						<field name="epartner_shipping_id" select="2"/>
						<field name="partner_invoice_id"/>
						<field name="partner_shipping_id"/>
						<field name="partner_id" select="1"/>
						<button string="Create Addresses" colspan="2" type="object"  name="address_set"/>
						<field name="web_ref" select="2"/>
						<field name="web_id" select="2"/>
						<field name="order_lines" widget="one2many_list" colspan="4" nolabel="1"/>
						<separator string="States" colspan="4"/>
						<field name="state"/>
						<button type="object" name="order_create" states="draft" string="Create Order"/>
						<button type="object" name="order_cancel" states="draft" string="Cancel Order"/>
					</page>
					<page string="Others data">
						<field name="order_id" colspan="3"/>
						<field name="note" colspan="3"/>
					</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_order_form">
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">esale_joomla.order</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_order_tree"/>
	</record>
	<menuitem name="Sales Management/Esale/Esale Orders" id="menu_action_order_form" action="action_order_form" groups="admin"/>

	<record model="ir.actions.act_window" id="action_order_tree">
		<field name="name">Draft eSale Order</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">esale_joomla.order</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('state','=','draft')]</field>
	</record>
	<menuitem name="Sales Management/Esale/Esale Orders/Draft Esale Orders" id="menu_action_order_tree" action="action_order_tree" groups="admin"/>


	<record model="ir.ui.view" id="view_order_line_form">
		<field name="name">esale_joomla.order.line.form</field>
		<field name="model">esale_joomla.order.line</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="eSales Order Line">
				<field name="name" colspan="3"/>
				<field name="product_id" colspan="3"/>
				<field name="product_qty"/>
				<field name="product_uom_id"/>
				<field name="price_unit"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="view_order_line_tree">
		<field name="name">esale_joomla.order.line.tree</field>
		<field name="model">esale_joomla.order.line</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="eSales Order Line">
				<field name="name"/>
				<field name="product_id"/>
				<field name="product_qty"/>
				<field name="product_uom_id"/>
				<field name="price_unit"/>
			</tree>
		</field>
	</record>


</data>
</terp>