112 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			112 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <openerp>
 | |
| 	<data>
 | |
| 
 | |
| 		<record id="base.action_partner_form" model="ir.actions.act_window">
 | |
| 			<field name="view_mode">tree,kanban,form</field>
 | |
| 		</record>
 | |
| 
 | |
| 		<record id="base.action_partner_form_view1" model="ir.actions.act_window.view">
 | |
| 			<field eval="10" name="sequence" />
 | |
| 		</record>
 | |
| 
 | |
| 		<record id="partner_section_form" model="ir.ui.view">
 | |
| 			<field name="name">partner_section_form</field>
 | |
| 			<field name="model">res.partner</field>
 | |
| 			<field name="inherit_id" ref="base.view_partner_form" />
 | |
| 			<field name="arch" type="xml">				
 | |
|                 <xpath expr="//div[@class='address_format'][1]" position="replace">
 | |
|                     <div class="address_format">
 | |
|                         <field name="zip" placeholder="PLZ" style="width: 15%%"/>
 | |
|                         <field name="city" placeholder="Stadt" style="width: 84%%"/> 
 | |
|                         <field name="state_id" invisible="1"/>
 | |
|                     </div>
 | |
|                 </xpath>
 | |
|                 
 | |
|                 <xpath expr="//form[@string='Contact']//div[@class='address_format']" position="replace">
 | |
|                     <div class="address_format">
 | |
|                         <field name="zip" placeholder="PLZ" style="width: 15%%"/>
 | |
|                         <field name="city" placeholder="Stadt" style="width: 84%%"/> 
 | |
|                         <field name="state_id" invisible="1"/>
 | |
|                     </div>
 | |
|                 </xpath>				
 | |
| 			</field>
 | |
| 		</record>
 | |
|         
 | |
|         <!--  Hide product variants -->
 | |
|         <record id="product_template_variant_kanban" model="ir.ui.view">
 | |
|             <field name="name">product_template_variant_kanban</field>
 | |
|             <field name="model">product.template</field>
 | |
|             <field name="inherit_id" ref="product.product_template_kanban_view"/>
 | |
|             <field name="arch" type="xml"> 
 | |
|                 <a name="%(product.product_variant_action)d" position="replace"/>  
 | |
|             </field>                            
 | |
|         </record>   
 | |
|         
 | |
| 
 | |
|         <record id="product_template_custom_tree" model="ir.ui.view">
 | |
|             <field name="name">product_template_custom_tree</field>
 | |
|             <field name="model">product.template</field>
 | |
|             <field name="inherit_id" ref="product.product_template_tree_view"/>
 | |
|             <field name="arch" type="xml"> 
 | |
|                 <field name="name" position="before">
 | |
|                     <field name="default_code"/>
 | |
|                 </field>
 | |
|                 <field name="name" position="after">
 | |
|                     <field name="list_price"/>
 | |
|                 </field>
 | |
|                 <!-- <field name="state" position="replace"/> -->
 | |
|             </field>                            
 | |
|         </record>       
 | |
|         
 | |
|         <record id="product.product_template_action" model="ir.actions.act_window">
 | |
|             <field name="view_mode">tree,form,kanban</field>
 | |
|             <field name="view_id"></field>
 | |
|         </record>  
 | |
|     
 | |
|         <record id="product_supplierinfo_form_view" model="ir.ui.view">
 | |
|             <field name="name">product.supplierinfo.form.view</field>
 | |
|             <field name="model">product.supplierinfo</field>
 | |
|             <field name="inherit_id" ref="product.product_supplierinfo_form_view"/>
 | |
|             <field name="arch" type="xml">
 | |
|                 <field name="product_code" position="replace">
 | |
|                 	<field name="product_code" invisible="1"/>
 | |
|                 </field>
 | |
|             </field>
 | |
|         </record>
 | |
| 
 | |
|         <!--  documents menu -->
 | |
| 	    <menuitem
 | |
| 	        name="Documents"
 | |
| 	        id="menu_document_main"
 | |
| 	        parent="knowledge.menu_document"
 | |
| 	        groups="base.group_document_user"
 | |
| 	        sequence="0"
 | |
| 	    />  
 | |
| 
 | |
| 	    <record model="ir.actions.act_window" id="action_document_files">
 | |
| 	        <field name="name">Dokumente</field>
 | |
| 	        <field name="type">ir.actions.act_window</field>
 | |
| 	        <field name="res_model">ir.attachment</field>
 | |
| 	        <field name="view_type">form</field>
 | |
| 	        <field name="view_mode">tree,form</field>
 | |
| 	        <field name="help" type="html">
 | |
| 	          <p class="oe_view_nocontent_create">
 | |
| 	            Click to create a new document. 
 | |
| 	          </p><p>
 | |
| 	            The Documents repository gives you access to all attachments, such
 | |
| 	            as mails, project documents, invoices etc.
 | |
| 	          </p>
 | |
| 	        </field>
 | |
| 	    </record>
 | |
| 	            
 | |
| 	    <menuitem
 | |
| 	        name="Documents"
 | |
| 	        action="action_document_files"
 | |
| 	        id="menu_document_files"
 | |
| 	        parent="menu_document_main"
 | |
| 	        sequence="0"
 | |
| 	    />        
 | |
| 	</data>
 | |
| </openerp>
 |