<?xml version="1.0"?>
<terp>
<data>
	<record model="ir.ui.view" id="vtree">
		<field name="name">esale.web.tree</field>
		<field name="model">esale.web</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="eSale Web Shop">
				<field name="name" select="1"/>
				<field name="partner_anonymous_id"/>
				<field name="shop_id" select="1"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_web_form">
		<field name="name">esale.web.form</field>
		<field name="model">esale.web</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="eSale Web Shop">
				<field name="name" select="1"/>
				<field name="active" select="1"/>
				<field name="shop_id" select="1"/>
				<field name="product_all"/>
				<field name="partner_anonymous_id" colspan="3"/>
				<field name="product_ids" colspan="3"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_shop_tree">
		<field name="name">esale.shop</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">esale.shop</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="eSales/Definitions/eCommerce Website" id="menu_action_shop_tree" action="action_shop_tree" groups="admin"/>


	<record model="ir.ui.view" id="view_order_tree">
		<field name="name">esale.order.tree</field>
		<field name="model">esale.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="partner_id"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_order_form">
		<field name="name">esale.order.form</field>
		<field name="model">esale.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" colspan="3"/>
						<field name="partner_id" select="1"/>
						<field name="date_order" select="1"/>
						<field name="web_id" select="1"/>
						<field name="web_ref" select="1"/>
						<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="name">esale.order</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">esale.order</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_order_form"/>
	</record>
	<menuitem name="eSales/eSales Order" id="menu_action_order_form" action="action_order_form" groups="admin"/>

	<record model="ir.actions.act_window" id="action_order_tree">
		<field name="name">esale.order</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">esale.order</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('state','=','draft')]</field>
	</record>
	<menuitem name="eSales/eSales Order/Draft eSales Order" 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.order.line.form</field>
		<field name="model">esale.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"/>

				<field name="price_unit"/>
				<field name="date_planned"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="view_order_line_tree">
		<field name="name">esale.order.line.tree</field>
		<field name="model">esale.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"/>
				<field name="price_unit"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_user_tree">
		<field name="name">esale.user.tree</field>
		<field name="model">esale.user</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="eSale user">
				<field name="name"/>
				<field name="partner_id"/>
				<field name="web_id"/>
				<field name="web_ref"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_user_form">
		<field name="name">esale.user.form</field>
		<field name="model">esale.user</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="eSale user">
				<field name="name" select="1" colspan="3"/>
				<field name="partner_id" select="1" colspan="3"/>
				<field name="web_id"/>
				<field name="web_ref"/>
				<field name="picking_policy"/>
				<field name="order_policy"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_user_form">
		<field name="name">esale.user</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">esale.user</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_user_form"/>
	</record>

</data>
</terp>
