111 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			111 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <odoo>
 | |
| 
 | |
|     <record id="account_invoice_form_view" model="ir.ui.view">
 | |
|         <field name="name">account_invoice_form_view</field>
 | |
|         <field name="model">account.invoice</field>
 | |
|         <field name="inherit_id" ref="account.invoice_form"/>
 | |
|         <field name="arch" type="xml">
 | |
| <!--
 | |
|             <xpath position="attributes" expr="//button[@name='action_invoice_open']">
 | |
|                 <attribute name="invisible">True</attribute>
 | |
|             </xpath>
 | |
|             <xpath position="before" expr="//button[@name='action_invoice_open']">
 | |
|                 <button name="%(action_wizard_confirm_null_invoice)d" type="action" string="Validate" states="draft" class="oe_highlight o_invoice_validate" groups="account.group_account_invoice"/>
 | |
|             </xpath>
 | |
| -->
 | |
|             <field name="payment_term_id" position="before">
 | |
|                 <field name="editor_id" options="{'no_create':True}"/>
 | |
|             </field>
 | |
| 
 | |
|             <field name="layout_category_id"/>
 | |
|             <xpath expr="//field[@name='invoice_line_ids']/tree//field[@name='name']" position="after">
 | |
|                 <field name="intrastat_id" options="{'no_create':True}"/>
 | |
|             </xpath>
 | |
| 
 | |
|             <xpath expr="//field[@name='invoice_line_ids']/tree//field[@name='product_id']" position="after">
 | |
|                 <field name="lot_id" options="{'no_open': True}"/>
 | |
|                 <button name="action_show_lot" string="Lot" type="object" icon="fa-list"
 | |
|                         attrs="{'invisible': [('lot_id', '=', False)]}" options='{"warn": true}'/>
 | |
|             </xpath>
 | |
|             <xpath expr="//field[@name='invoice_line_ids']/kanban//field[@name='product_id']" position="after">
 | |
|                 <field name="lot_id"/>
 | |
|             </xpath>
 | |
|             <xpath expr="//field[@name='invoice_line_ids']/tree//field[@name='invoice_line_tax_ids']" position="before">
 | |
|                 <field name="hide_intrastat_code"/>
 | |
|                 <field name="dealer_discount" invisible="1"/>
 | |
|             </xpath>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="account_payment_term_form_view" model="ir.ui.view">
 | |
|         <field name="name">account_payment_term_form_view</field>
 | |
|         <field name="model">account.payment.term</field>
 | |
|         <field name="inherit_id" ref="account.view_payment_term_form"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <field name="name" position="after">
 | |
|                 <field name="code"/>
 | |
|             </field>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="account_invoice_tree_section" model="ir.ui.view">
 | |
|         <field name="name">account.invoice.tree_section</field>
 | |
|         <field name="model">account.invoice</field>
 | |
|         <field name="inherit_id" ref="account.invoice_tree"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <field name="number" position="after">
 | |
|                 <field name="layout_category_id" invisible="1"/>
 | |
|             </field>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record id="view_account_invoice_filter_active" model="ir.ui.view">
 | |
|         <field name="name">account.invoice.select</field>
 | |
|         <field name="model">account.invoice</field>
 | |
|         <field name="inherit_id" ref="account.view_account_invoice_filter"/>
 | |
|         <field name="arch" type="xml">
 | |
|             <field name="journal_id" position="after">
 | |
|                 <field name="layout_category_id" string="Referenzbeleg"/>
 | |
|             </field>
 | |
|             <xpath expr="//filter[@name='late']" position="after">
 | |
|                  <filter name="active" string="Nicht abgebrochen" domain="[('state', '!=', 'cancel')]"/>
 | |
|             </xpath>
 | |
|             <filter name="status" position="after">
 | |
|                 <filter string="Invoice Year" domain="[]" context="{'group_by':'date_invoice:year'}"/>
 | |
|             </filter>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
|     <record model="ir.ui.menu" id="account.menu_action_invoice_tree1">
 | |
|         <field name="name">Customer Invoices</field>
 | |
|         <field name="action" ref="account.action_invoice_tree1"/>
 | |
|     </record>
 | |
| 
 | |
|     <record id="action_invoice_tree1" model="ir.actions.act_window">
 | |
|         <field name="name">Customer Invoices</field>
 | |
|         <field name="res_model">account.invoice</field>
 | |
|         <field name="inherit_id" ref="account.view_account_invoice_filter"/>
 | |
|         <field name="view_type">form</field>
 | |
|         <field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
 | |
|         <field eval="False" name="view_id"/>
 | |
|         <field name="domain">[('type','=','out_invoice')]</field>
 | |
|         <field name="context">{'type':'out_invoice', 'journal_type': 'sale',"search_default_active":1}</field>
 | |
|         <field name="search_view_id" ref="account.view_account_invoice_filter"/>
 | |
|         <field name="help" type="html">
 | |
|           <p class="oe_view_nocontent_create">
 | |
|             Click to create a customer invoice.
 | |
|           </p><p>
 | |
|             Odoo's electronic invoicing allows to ease and fasten the
 | |
|             collection of customer payments. Your customer receives the
 | |
|             invoice by email and he can pay online and/or import it
 | |
|             in his own system.
 | |
|           </p><p>
 | |
|             The discussions with your customer are automatically displayed at
 | |
|             the bottom of each invoice.
 | |
|           </p>
 | |
|         </field>
 | |
|     </record>
 | |
| 
 | |
| </odoo>
 |