forked from OCA/account-closing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccount_invoice_view.xml
60 lines (50 loc) · 1.95 KB
/
account_invoice_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <[email protected]>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<record id="invoice_form" model="ir.ui.view">
<field name="name">prepaid.cutoff.invoice_form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_line']/tree/field[@name='account_analytic_id']" position="after">
<field name="start_date" />
<field name="end_date" />
</xpath>
<!-- Code to test the form view of invoice lines -->
<!--
<xpath expr="//field[@name='invoice_line']/tree" position="attributes">
<attribute name="editable"></attribute>
</xpath> -->
</field>
</record>
<record id="invoice_supplier_form" model="ir.ui.view">
<field name="name">prepaid.cutoff.invoice_supplier_form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_line']/tree/field[@name='account_analytic_id']" position="after">
<field name="start_date" />
<field name="end_date" />
</xpath>
</field>
</record>
<record id="view_invoice_line_form" model="ir.ui.view">
<field name="name">prepaid.cutoff.invoice_line_form</field>
<field name="model">account.invoice.line</field>
<field name="inherit_id" ref="account.view_invoice_line_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='discount']/.." position="after">
<group name="start_end_dates">
<field name="start_date" />
<field name="end_date" />
</group>
</xpath>
</field>
</record>
</data>
</openerp>