forked from OCA/account-invoicing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoice_template.xml
98 lines (91 loc) · 4.59 KB
/
invoice_template.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_invoice_template_line_tree" model="ir.ui.view">
<field name="name">account.invoice.template.line.tree</field>
<field name="model">account.invoice.template.line</field>
<field name="arch" type="xml">
<tree string="Invoice Template Line">
<field name="product_id"/>
<field name="sequence"/>
<field name="name"/>
<field name="account_id" />
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="type"/>
<field name="python_code"/>
</tree>
</field>
</record>
<record id="view_invoice_template_line_form" model="ir.ui.view">
<field name="name">account.invoice.template.line.form</field>
<field name="model">account.invoice.template.line</field>
<field name="arch" type="xml">
<form string="Invoice Template Line">
<field name="product_id" on_change="product_id_change(product_id, parent.type)"/>
<field name="name" select="1"/>
<field name="sequence"/>
<field name="account_id" />
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="type"/>
<separator string="Python Code" colspan="4"/>
<field name="python_code" colspan="4" attrs="{'readonly': [('type', '!=', 'computed')]}" nolabel="1"/>
<label string="You can refer to other lines using their sequence number (e.g. 'L(1)' for first line). Examples of code: 'L(1) * 0.2'; 'L(2) - L(1)'; 'L(1) + L(2) + L(3)'; '1250'" colspan="4"/>
<field name="invoice_line_tax_id" colspan="4" nolabel="1"/>
</form>
</field>
</record>
<record id="view_invoice_template_form" model="ir.ui.view">
<field name="name">account.invoice.template.form</field>
<field name="model">account.invoice.template</field>
<field name="arch" type="xml">
<form string="Invoice Template">
<field name="name"/>
<field name="partner_id"/>
<field name="account_id" />
<field name="type" />
<field colspan="4" nolabel="1" name="template_line_ids"/>
</form>
</field>
</record>
<record id="view_invoice_template_tree" model="ir.ui.view">
<field name="name">account.invoice.template.tree</field>
<field name="model">account.invoice.template</field>
<field name="arch" type="xml">
<tree string="Invoice Template">
<field name="name"/>
<field name="partner_id"/>
<field name="account_id" />
<field name="type" />
</tree>
</field>
</record>
<record id="view_invoice_template_search" model="ir.ui.view">
<field name="name">account.invoice.template.search</field>
<field name="model">account.invoice.template</field>
<field name="arch" type="xml">
<search string="Invoice Template">
<group>
<field name="name"/>
<field name="partner_id" />
<field name="account_id" />
<field name="type" />
</group>
<newline/>
<group expand="0" string="Group By...">
<filter string="Partner" icon="terp-folder-orange" domain="[]" context="{'group_by':'partner_id'}"/>
</group>
</search>
</field>
</record>
<record id="action_invoice_template_form" model="ir.actions.act_window">
<field name="name">Invoice Templates</field>
<field name="res_model">account.invoice.template</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_invoice_template_search"/>
</record>
<menuitem
action="action_invoice_template_form" id="menu_action_invoice_template_form" sequence="5"
parent="account.menu_configuration_misc" groups="account.group_account_manager"/>
</data>
</openerp>