2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<record id="product_template_search_view_pos" model="ir.ui.view">
|
|
|
|
<field name="name">product.template.search.pos.form</field>
|
|
|
|
<field name="model">product.template</field>
|
|
|
|
<field name="inherit_id" ref="product.product_template_search_view"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<filter name="filter_to_sell" position="before">
|
|
|
|
<filter name="filter_to_availabe_pos" string="Available in POS" domain="[('available_in_pos', '=', True)]"/>
|
|
|
|
</filter>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="product_template_action_pos_product" model="ir.actions.act_window">
|
|
|
|
<field name="name">Products</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">product.template</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
|
|
<field name="context" eval="{'search_default_filter_to_availabe_pos': 1}"/>
|
|
|
|
</record>
|
|
|
|
<record id="product_product_action" model="ir.actions.act_window">
|
|
|
|
<field name="name">Product Variants</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">product.product</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
|
|
<field name="context" eval="{'search_default_filter_to_availabe_pos': 1}"/>
|
|
|
|
<field name="domain" eval="[]"/>
|
|
|
|
<field name="search_view_id" eval="False"/> <!-- Force empty -->
|
|
|
|
<field name="view_id" ref="product.product_product_tree_view"/>
|
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click to add a new product.
|
|
|
|
</p><p>
|
|
|
|
You must define a product for everything you sell through
|
|
|
|
the point of sale interface.
|
|
|
|
</p><p>
|
|
|
|
Do not forget to set the price and the point of sale category
|
|
|
|
in which it should appear. If a product has no point of sale
|
|
|
|
category, you can not sell it through the point of sale
|
|
|
|
interface.
|
|
|
|
</p>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="product_category_action" model="ir.actions.act_window">
|
|
|
|
<field name="name">Internal Categories</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">product.category</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="search_view_id" ref="product.product_category_search_view"/>
|
|
|
|
<field name="view_id" ref="product.product_category_list_view"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="product_template_form_view" model="ir.ui.view">
|
|
|
|
<field name="name">product.template.form.inherit</field>
|
|
|
|
<field name="model">product.template</field>
|
|
|
|
<field name="inherit_id" ref="stock.view_template_property_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<group name="email_template_and_project" position="before">
|
|
|
|
<group name="pos" string="Point of Sale">
|
|
|
|
<field name="available_in_pos"/>
|
|
|
|
<field name="pos_categ_id" attrs="{'invisible': [('available_in_pos', '=', False)]}" string="PoS Category"/>
|
|
|
|
<field name="to_weight" attrs="{'invisible': [('available_in_pos', '=', False)]}"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Product Catalog menus and sub menus -->
|
|
|
|
<menuitem id="pos_config_menu_catalog"
|
|
|
|
name="Catalog"
|
|
|
|
parent="point_of_sale.menu_point_root"/>
|
|
|
|
<menuitem id="menu_pos_products"
|
|
|
|
action="product_template_action_pos_product"
|
|
|
|
parent="point_of_sale.pos_config_menu_catalog"
|
|
|
|
sequence="5"/>
|
|
|
|
<menuitem id="pos_config_menu_action_product_product"
|
|
|
|
name="Product Variants"
|
|
|
|
parent="point_of_sale.pos_config_menu_catalog"
|
|
|
|
action="product_product_action"
|
|
|
|
groups="product.group_product_variant"
|
|
|
|
sequence="10"/>
|
|
|
|
<menuitem id="pos_config_menu_action_product_pricelist"
|
|
|
|
parent="point_of_sale.pos_config_menu_catalog"
|
|
|
|
action="product.product_pricelist_action2"
|
|
|
|
groups="product.group_sale_pricelist"
|
|
|
|
sequence="20"/>
|
|
|
|
|
|
|
|
<record id="product_uom_categ_form_view" model="ir.ui.view">
|
|
|
|
<field name="name">product.uom.categ.form.inherit</field>
|
|
|
|
<field name="model">product.uom.categ</field>
|
|
|
|
<field name="inherit_id" ref="product.product_uom_categ_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//field[@name='name']" position="after">
|
|
|
|
<field name="is_pos_groupable" groups="base.group_no_one"/>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|