odoo/addons/product/pricelist_view.xml

239 lines
12 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<menuitem id="base.menu_sale_config_sales" name="Sales"
parent="base.menu_base_config" sequence="0" groups="base.group_extended"/>
<menuitem id="menu_product_pricelist_main" name="Pricelists"
parent="base.menu_base_config" groups="base.group_sale_pricelist_per_customer" sequence="50"/>
<record id="product_pricelist_version_form_view" model="ir.ui.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"/>
<field colspan="4" name="pricelist_id" select="1"/>
<field name="date_start" select="1"/>
<field name="date_end" select="1"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
<field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
</form>
</field>
</record>
<record id="product_pricelist_version_tree_view" model="ir.ui.view">
<field name="name">product.pricelist.version.tree</field>
<field name="model">product.pricelist.version</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Pricelist Version">
<field name="name"/>
<field name="pricelist_id"/>
<field name="date_start"/>
<field name="date_end"/>
</tree>
</field>
</record>
<record id="product_pricelist_action" model="ir.actions.act_window">
<field name="name">Pricelist Versions</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_tree_view"/>
<field name="help">There can be more than one version of a pricelist. Here you can create and manage new versions of a price list. Some examples of versions: 2010, 2011, Summer Promotion, etc.</field>
</record>
<menuitem
action="product_pricelist_action" id="menu_product_pricelist_action"
parent="product.menu_product_pricelist_main" sequence="2"/>
<record id="product_pricelist_item_tree_view" model="ir.ui.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 colspan="4" name="name" select="1"/>
<field name="product_id"/>
<field name="product_tmpl_id" select="1" groups="product.group_product_variant"/>
<field name="categ_id" select="1"/>
<field name="min_quantity"/>
<field name="base"/>
</tree>
</field>
</record>
<record id="product_pricelist_item_form_view" model="ir.ui.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 colspan="4" string="Rules Test Match"/>
<field colspan="4" name="name" select="1"/>
<field name="product_id" on_change="product_id_change(product_id)" select="1"/>
<field name="product_tmpl_id" select="1" groups="product.group_product_variant"/>
<field name="categ_id" select="1"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
<newline/>
<field name="min_quantity"/>
<field name="sequence"/>
<separator colspan="4" string="Price Computation"/>
<field name="base"/>
<field name="base_pricelist_id" attrs="{'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
<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_search">
<field name="name">product.pricelist.search</field>
<field name="model">product.pricelist</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Products Price Search">
<field name="name" />
<field name="type"/>
<field name="currency_id"/>
<field name="active" />
</search>
</field>
</record>
<record id="product_pricelist_view_tree" model="ir.ui.view">
<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"/>
<field name="active" />
</tree>
</field>
</record>
<record id="product_pricelist_view" model="ir.ui.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">
<field name="name" select="1"/>
<field name="active" select="1"/>
<field name="type" select="1"/>
<field name="currency_id" select="1"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
<field colspan="4" name="version_id" nolabel="1">
<form string="Pricelist Version">
<field name="name" select="1"/>
<field name="active"/>
<field name="date_start" select="1"/>
<field name="date_end" select="1"/>
<field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
</form>
<tree string="Pricelist Version">
<field name="name"/>
<field name="active"/>
<field name="date_start"/>
<field name="date_end"/>
</tree>
</field>
</form>
</field>
</record>
<record id="product_pricelist_action2" model="ir.actions.act_window">
<field name="name">Pricelists</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>
<field name="search_view_id" ref="product_pricelist_view_search" />
<field name="context">{"default_type":"sale", "search_default_type":"sale"}</field>
<field name="help">A price list contains rules to be evaluated in order to compute the purchase or sales price for all the partners assigned to a price list. Price lists have several versions (2010, 2011, Promotion of February 2010, etc.) and each version has several rules. Example: the customer price of a product category will be based on the supplier price multiplied by 1.80.</field>
</record>
<record id="product_pricelist_action_for_purchase" model="ir.actions.act_window">
<field name="name">Pricelists</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>
<field name="search_view_id" ref="product_pricelist_view_search" />
<field name="context">{"default_type":"purchase", "search_default_type":"purchase"}</field>
<field name="help">A price list contains rules to be evaluated in order to compute the purchase or sales price for all the partners assigned to a price list. Price lists have several versions (2010, 2011, Promotion of February 2010, etc.) and each version has several rules. Example: the customer price of a product category will be based on the supplier price multiplied by 1.80.</field>
</record>
<menuitem
action="product_pricelist_action2" id="menu_product_pricelist_action2"
parent="product.menu_product_pricelist_main" sequence="1"/>
<record id="product_price_type_view" model="ir.ui.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 id="product_price_type_action" model="ir.actions.act_window">
<field name="name">Price Types</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
action="product_price_type_action" id="menu_product_price_type"
parent="product.menu_product_pricelist_main" sequence="4"/>
<!-- Moved to extra module 'sale_pricelist_type_menu':
<record id="product_pricelist_type_view" model="ir.ui.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 id="product_pricelist_type_action" model="ir.actions.act_window">
<field name="name">Pricelists Types</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
action="product_pricelist_type_action" id="menu_product_pricelist_type_action2"
parent="product.menu_product_pricelist_main" sequence="2"
groups="base.group_extended"/>-->
</data>
</openerp>