190 lines
		
	
	
		
			8.3 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			190 lines
		
	
	
		
			8.3 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <odoo>
 | |
|     <record id="product_form_view" model="ir.ui.view">
 | |
|         <field name="name">product_form_view</field>
 | |
|         <field name="model">product.template</field>
 | |
|         <field name="inherit_id" ref="product.product_template_form_view"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <div name="volume" position="after">
 | |
|                 <field name="length"/>
 | |
|                 <field name="width"/>
 | |
|                 <field name="height"/>
 | |
|                 <field name="thickness"/>
 | |
|                 <field name="surface"/>
 | |
|                 <field name="can_be_sold_unconfigured"/>
 | |
|             </div>
 | |
|             <field name="categ_id" position="after">
 | |
|                 <field name="xcat_id"/>
 | |
|                 <field name="material_type_id"/>
 | |
|                 <field name="assembly_line_ids" widget="many2many_tags" options="{'no_create': True}"/>
 | |
|                 <field name="manufacturing_number"/>
 | |
|                 <field name="product_color"/>
 | |
|             </field>
 | |
|             <xpath expr="//page[@name='general_information']/group" position="inside">
 | |
|                 <group name="note" string="Notizen">
 | |
|                     <field name="notes"/>
 | |
|                 </group>
 | |
|             </xpath>
 | |
|         </field>
 | |
|         <field name="priority">300</field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="product_template_form_view" model="ir.ui.view">
 | |
|         <field name="name">product_template_form_view</field>
 | |
|         <field name="model">product.template</field>
 | |
|         <field name="inherit_id" ref="product.product_template_only_form_view"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <field name="barcode" position="after">
 | |
|                 <field name="is_internal"/>
 | |
|             </field>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="product_product_form_view" model="ir.ui.view">
 | |
|         <field name="name">product_product_form_view</field>
 | |
|         <field name="model">product.product</field>
 | |
|         <field name="inherit_id" ref="product.product_normal_form_view"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <field name="barcode" position="after">
 | |
|                 <field name="is_internal"/>
 | |
|             </field>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="product_category_form_view" model="ir.ui.view">
 | |
|         <field name="name">product_category_form_view</field>
 | |
|         <field name="model">product.category</field>
 | |
|         <field name="inherit_id" ref="product.product_category_form_view"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <field name="parent_id" position="after">
 | |
|                 <field name="code" class="oe_inline"/>
 | |
|             </field>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="dp_product_pricelist_item_form_view" model="ir.ui.view">
 | |
|         <field name="name">dp_product_pricelist_item_form_view</field>
 | |
|         <field name="model">product.pricelist.item</field>
 | |
|         <field name="inherit_id" ref="product.product_pricelist_item_form_view"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <field name="applied_on" position="attributes">
 | |
|                 <attribute name="attrs">{'invisible':[('applied_on', '=', '1_product')]}</attribute>
 | |
|             </field>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="product_xcategory_form_view" model="ir.ui.view">
 | |
|         <field name="name">product_xcategory_form_view</field>
 | |
|         <field name="model">product.xcategory</field>
 | |
|         <field name="arch" type="xml">
 | |
|             <form string="X-Kategorie">
 | |
|                 <group>
 | |
|                     <field name="name"/>
 | |
|                 </group>
 | |
|             </form>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="product_xcategory_tree_view" model="ir.ui.view">
 | |
|         <field name="name">product_xcategory_tree_view</field>
 | |
|         <field name="model">product.xcategory</field>
 | |
|         <field name="arch" type="xml">
 | |
|             <tree>
 | |
|                 <field name="name"/>
 | |
|             </tree>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="product_xcategory_action" model="ir.actions.act_window">
 | |
|         <field name="name">X-Kategorien</field>
 | |
|         <field name="type">ir.actions.act_window</field>
 | |
|         <field name="res_model">product.xcategory</field>
 | |
|         <field name="target">current</field>
 | |
|         <field name="view_type">form</field>
 | |
|         <field name="view_mode">tree,form</field>
 | |
|         <field name="view_id" ref="product_xcategory_tree_view"/>
 | |
|     </record>
 | |
| 
 | |
|     <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>
 | |
|         <field name="inherit_id" ref="product.product_template_search_view"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <xpath expr="//field[@name='categ_id']" position="after">
 | |
|                 <field name="default_code" string="Interne Referenz" filter_domain="[('default_code','ilike',self)]"/>
 | |
|                 <field name="manufacturing_number" string="Herstellnummer" filter_domain="[('manufacturing_number','ilike',self)]"/>
 | |
|                 <field name="suppl_ids" string="Lieferanten-Bestellnummer"
 | |
|                                 filter_domain="[('suppl_ids.product_name','ilike',self)]"/>
 | |
|                 <filter string="Produktart" domain="[]" context="{'group_by':'type'}"/>
 | |
|                 <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>
 | |
|             <xpath expr="//filter[@name='inactive']" position="after">
 | |
| <!--                <separator/> -->
 | |
|                 <filter string="Aktiv/Inaktiv" domain="['|',('active','=',True),('active','=',False)]" context="{'group_by':'active'}"/>
 | |
|             </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>
 |