<?xml version="1.0"?>
<terp>
<data>

	<menuitem name="Products/Pricelists" id="menu_product_pricelist_main" sequence="2"/>

	<record model="ir.ui.view" id="product_pricelist_version_form_view">
		<field name="name">product.pricelist.version.form</field>
		<field name="model">product.pricelist.version</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Pricelist Version">
				<field name="name" select="1"/>
				<field name="active" select="1"/>
				<field name="pricelist_id" colspan="3"/>
				<field name="date_start" select="1"/>
				<field name="date_end" select="1"/>
				<field name="items_id" colspan="4" nolabel="1" widget="one2many_list"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="product_pricelist_action">
		<field name="name">product.pricelist.version.form</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">product.pricelist.version</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="product_pricelist_version_form_view"/>
	</record>
	<menuitem name="Products/Pricelists/Pricelists Version" id="menu_product_pricelist_action" action="product_pricelist_action"/>

	<record model="ir.ui.view" id="product_pricelist_item_tree_view">
		<field name="name">product.pricelist.item.tree</field>
		<field name="model">product.pricelist.item</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Products Listprices Items">
				<field name="sequence"/>
				<field name="name" colspan="3" select="1"/>
				<field name="product_tmpl_id" select="1"/>
				<field name="categ_id" select="1"/>
				<field name="min_quantity"/>
				<field name="base"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="product_pricelist_item_form_view">
		<field name="name">product.pricelist.item.form</field>
		<field name="model">product.pricelist.item</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Products Listprices Items">
				<separator string="Rules Test Match" colspan="4"/>
				<field name="name" select="1" colspan="3"/>
				<field name="product_id" select="1" on_change="product_id_change(product_tmpl_id)"/>
				<field name="product_tmpl_id" select="1"/>
				<field name="categ_id" select="1"/>
				<newline/>
				<field name="min_quantity"/>
				<field name="sequence"/>
				<separator string="Price Computation" colspan="4"/>

				<field name="base"/>
				<field name="base_pricelist_id"/>
				<group col="6" colspan="5">
					<label string="New Price ="/>
					<label string="Base Price"/>
					<label string="* ( 1 - "/>
					<field name="price_discount" nolabel="1"/>
					<label string=" ) + "/>
					<field name="price_surcharge" nolabel="1"/>
				<newline/>
					<field name="price_round" string="Rounding Method"/>
					<field name="price_min_margin" string="Min. Margin"/>
					<field name="price_max_margin" string="Max. Margin"/>
				</group>

			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="product_pricelist_view_tree">
		<field name="name">product.pricelist.tree</field>
		<field name="model">product.pricelist</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Products Price List">
				<field name="name"/>
				<field name="type"/>
				<field name="currency_id"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="product_pricelist_view">
		<field name="name">product.pricelist.form</field>
		<field name="model">product.pricelist</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Products Price List">
				<separator string="Pricelist Name" colspan="4"/>
				<field name="name" colspan="3" select="1"/>
				<field name="type" select="1"/>
				<field name="currency_id" select="1"/>
				<field name="active" select="1"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="product_pricelist_action2">
		<field name="name">product.pricelist.form</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">product.pricelist</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Products/Pricelists/Pricelists" id="menu_product_pricelist_action2" action="product_pricelist_action2"/>

	<record model="ir.ui.view" id="product_price_type_view">
		<field name="name">product.price.type.form</field>
		<field name="model">product.price.type</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Products Price Type">
				<field name="name" select="1"/>
				<field name="active" select="1"/>
				<field name="field"/>
				<field name="currency_id" select="1"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="product_price_type_action">
		<field name="name">product.price.type.form</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">product.price.type</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Products/Configuration/Prices Types" id="menu_product_price_type_action" action="product_price_type_action"/>

	<record model="ir.ui.view" id="product_pricelist_type_view">
		<field name="name">product.pricelist.type.form</field>
		<field name="model">product.pricelist.type</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Pricelist Type">
				<field name="name" select="1"/>
				<field name="key"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="product_pricelist_type_action">
		<field name="name">product.pricelist.type.form</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">product.pricelist.type</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Products/Configuration/Pricelists Types" id="menu_product_pricelist_type_action" action="product_pricelist_type_action"/>

</data>
</terp>
