66 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			2.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>    
 | 
						|
    	
 | 
						|
    	<!-- account.payment.term -->
 | 
						|
        <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>   
 | 
						|
        
 | 
						|
        <!-- account.invoice -->
 | 
						|
		<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"/>                    
 | 
						|
                </field>                
 | 
						|
            </field>
 | 
						|
        </record>
 | 
						|
                 		
 | 
						|
    </data>
 | 
						|
</openerp>
 |