88 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| 
 | |
| <!--
 | |
| ##############################################################################
 | |
| #
 | |
| #    OpenERP, Open Source Management Solution
 | |
| #    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
 | |
| #
 | |
| #    cam_invoice_skonto, Custom Module for OpenERP
 | |
| #    Copyright (C) 2014 Camadeus Consulting GmbH (<http://www.camadeus.at>).
 | |
| #
 | |
| #    This program is free software: you can redistribute it and/or modify
 | |
| #    it under the terms of the GNU Affero General Public License as
 | |
| #    published by the Free Software Foundation, either version 3 of the
 | |
| #    License, or (at your option) any later version.
 | |
| #
 | |
| #    This program is distributed in the hope that it will be useful,
 | |
| #    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
| #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
| #    GNU Affero General Public License for more details.
 | |
| #
 | |
| #    You should have received a copy of the GNU Affero General Public License
 | |
| #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |
| #
 | |
| ##############################################################################
 | |
| -->
 | |
| 
 | |
| <openerp>
 | |
|     <data>    
 | |
|     	
 | |
|         <record id="view_payment_term_form" model="ir.ui.view">
 | |
|             <field name="name">cam_invoice_skonto.payment.term.form</field>
 | |
|             <field name="model">account.payment.term</field>
 | |
|             <field name="inherit_id" ref="account.view_payment_term_form"/>
 | |
|             <field name="arch" type="xml">
 | |
|                 <xpath expr="//form[@string='Payment Term']/separator[@string='Computation']" position="replace">
 | |
|                 </xpath>
 | |
|                 <xpath expr="//form[@string='Payment Term']/field[@name='line_ids']" position="replace">
 | |
|                     <group col="4">
 | |
|                     	<field name="skonto_tage"/>
 | |
|                         <field name="netto_tage"/>
 | |
| 						<field name="skonto_prozent"/>
 | |
|                     </group>                	
 | |
|                 </xpath>                            	
 | |
|             </field>
 | |
|         </record>   
 | |
|         
 | |
| 		<record id="invoice_form" model="ir.ui.view">
 | |
|             <field name="name">cam_invoice_skonto.invoice.form</field>
 | |
|             <field name="model">account.invoice</field>
 | |
|             <field name="inherit_id" ref="account.invoice_form"/>
 | |
|             <field name="arch" type="xml">
 | |
|                 <field name="date_due" position="after">
 | |
|                     <field name="skonto_faelligkeit"/>
 | |
|                 </field>
 | |
|                 <field name="residual" position="before">
 | |
| 					<field name="skonto_betrag_inkl" attrs="{'invisible': [('skonto_betrag_inkl','=',0)]}"/>                    
 | |
|                 </field>                
 | |
|             </field>
 | |
|         </record>
 | |
| 
 | |
|         <!-- account.voucher -->
 | |
|         <record id="account_voucher_form" model="ir.ui.view">
 | |
|             <field name="name">cam_invoice_skonto.account_voucher.form</field>
 | |
|             <field name="model">account.voucher</field>
 | |
|             <field name="inherit_id" ref="account_voucher.view_vendor_receipt_dialog_form"/>
 | |
|             <field name="arch" type="xml">
 | |
|                 <field name="writeoff_acc_id" position="attributes">
 | |
|                     <attribute name="invisible">1</attribute>
 | |
|                 </field>
 | |
| 
 | |
|             </field>
 | |
|         </record>
 | |
|         
 | |
|         <record id="view_order_form" model="ir.ui.view">
 | |
|             <field name="name">sale.order.form</field>
 | |
|             <field name="model">sale.order</field>
 | |
|             <field name="inherit_id" ref="sale.view_order_form"/>
 | |
|             <field name="arch" type="xml">
 | |
|                 <field name="amount_total" position="after">
 | |
| 					<field name="skonto_betrag_inkl"/>                    
 | |
|                 </field> 
 | |
|             </field>
 | |
|         </record>
 | |
|                  		
 | |
|     </data>
 | |
| </openerp>
 |