Additional filter for product "all - (active & inactive)" and customized kanban & treeview
parent
34019e75ea
commit
e2544cd9ef
|
|
@ -105,11 +105,6 @@
|
|||
<field name="view_id" ref="product_xcategory_tree_view"/>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_product_xcategory"
|
||||
parent="sale.menu_sale_config"
|
||||
name="X-Kategorien"
|
||||
action="product_xcategory_action"/>
|
||||
|
||||
<record id="product_template_search_view_tz" model="ir.ui.view">
|
||||
<field name="name">product.template.search.tz</field>
|
||||
<field name="model">product.template</field>
|
||||
|
|
@ -123,7 +118,67 @@
|
|||
<filter string="Interne Kategorie" domain="[]" context="{'group_by':'categ_id'}"/>
|
||||
<filter string="Materialtyp" domain="[]" context="{'group_by':'material_type_id'}"/>
|
||||
</xpath>
|
||||
<xpath expr="//filter[@name='inactive']" position="after">
|
||||
<!-- <separator/> -->
|
||||
<filter string="Alle (Aktiv & Inaktiv)" name="all_products" domain="['|',('active','=',True),('active','=',False)]"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_kanban_view_tz" model="ir.ui.view">
|
||||
<field name="name">Product Kanban TZ</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_kanban_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="lst_price" position="after">
|
||||
<field name="active"/>
|
||||
</field>
|
||||
<ul position="inside">
|
||||
<li t-if="!record.active.raw_value"><span style="background-color: yellow; color: red; font-weight: bold">INAKTIV</span></li>
|
||||
</ul>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_product_template_tree_tz" model="ir.ui.view">
|
||||
<field name="name">product.template.stock.tree.inherit_tz</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_tree_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree position="attributes">
|
||||
<attribute name="decoration-muted">active!=True</attribute>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
<record id="product_template_action" 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_mode">kanban,tree,form</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_id" ref="product.product_template_kanban_view"/>
|
||||
<field name="context">{"search_default_filter_to_sell":1,"search_default_all_products":1}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to define a new product.
|
||||
</p><p>
|
||||
You must define a product for everything you sell, whether it's a physical product, a consumable or a service you offer to customers.
|
||||
</p><p>
|
||||
The product form contains information to simplify the sale process: price, notes in the quotation, accounting data, procurement methods, etc.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.menu" id="sale.menu_product_template_action">
|
||||
<field name="action" ref="product_template_action"/>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<menuitem id="menu_product_xcategory"
|
||||
parent="sale.menu_sale_config"
|
||||
name="X-Kategorien"
|
||||
action="product_xcategory_action"/>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Reference in New Issue