-
Notifications
You must be signed in to change notification settings - Fork 2
/
account_move_view.xml
142 lines (132 loc) · 7.46 KB
/
account_move_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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_move_form_streamline" model="ir.ui.view">
<field name="name">account.move.form.streamline</field>
<field name="model">account.move</field>
<field eval="5" name="priority" />
<field name="arch" type="xml">
<form string="Account Entry" version="7.0">
<header>
<button name="button_validate" states="draft"
string="Post" type="object" class="oe_highlight"
groups="account.group_account_invoice" />
<button name="button_cancel" states="posted"
string="Cancel Entry" type="object"
groups="account.group_account_invoice" />
<field name="state" widget="statusbar" />
</header>
<label for="name" class="oe_edit_only"
attrs="{'invisible':[('name','=','/')]}" />
<h1>
<field name="name" readonly="True"
attrs="{'invisible':[('name','=','/')]}" />
</h1>
<group>
<group>
<field name="journal_id" />
<field name="period_id" />
<field name="company_id" required="1"
groups="base.group_multi_company" />
<field name="partner_id" invisible="1" />
</group>
<group>
<field name="ref" />
<field name="date" />
<field name="to_check" />
<field name="amount" invisible="1" />
<field name="object_reference"
attrs="{'invisible': [('object_reference', '=', False)]}"
readonly="True" />
</group>
</group>
<notebook>
<page string="Journal Items">
<field name="line_id" widget="one2many_list"
context="{'line_id': line_id , 'journal_id': journal_id}">
<tree
colors="blue:state == 'draft';black:state == 'posted'"
editable="bottom" string="Journal Items">
<!-- Utility fields, used by other fields. -->
<field name="move_state" invisible="1" />
<field name="reconcile_id" invisible="1" />
<field name="name" />
<field name="partner_id"
domain="['|', ('parent_id', '=', False), ('is_company', '=', True)]"
on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,parent.date,parent.journal_id)" />
<field name="account_id"
on_change="onchange_account_id(account_id)"
domain="[('journal_id','=',parent.journal_id),('company_id', '=', parent.company_id)]" />
<field name="currency_id"
groups="base.group_multi_currency"
required="0"
on_change="onchange_currency(account_id,debit_curr,credit_curr,currency_id,parent.date)" />
<field name="debit_curr" sum="Total Debit"
on_change="onchange_currency(account_id,debit_curr,credit_curr,currency_id,parent.date)" />
<field name="credit_curr" sum="Total Credit"
on_change="onchange_currency(account_id,debit_curr,credit_curr,currency_id,parent.date)" />
<field name="debit"
groups="base.group_multi_currency" sum="Total Debit" />
<field name="credit"
groups="base.group_multi_currency" sum="Total Credit" />
<field name="analytic_account_id"
groups="analytic.group_analytic_accounting" />
<field name="tax_code_id" />
<field name="date_maturity" />
<field name="amount_currency"
invisible="1" />
<field name="state" invisible="1" />
<field name="analytic_dimensions" readonly="True" />
</tree>
</field>
</page>
</notebook>
<field name="narration" colspan="4"
placeholder="Add an internal note..." nolabel="1"
height="50" />
<div class="oe_chatter">
<field name="message_ids" widget="mail_thread"
modifiers="{}" />
</div>
</form>
</field>
</record>
<record id="account_move_line_analytic_form" model="ir.ui.view">
<field name="name">account.move.line.analytic.form</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form" />
<field name="arch" type="xml">
<xpath expr="//group[@string='Reconciliation']" position="after">
<group string="Analytic Static">
<field name="analytic_dimensions" />
</group>
</xpath>
</field>
</record>
<!-- Inherit from account.view_move_tree. -->
<record id="view_move_tree_streamline" model="ir.ui.view">
<field name="name">account.move.tree.streamline</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="replace" />
</field>
</record>
<!-- Actions. -->
<record id="account_streamline_multi_validate_server_action"
model="ir.actions.server">
<field name="code">action = object.multi_validate()</field>
<field name="model_id" ref="model_account_move" />
<field name="name">Post</field>
<field name="state">code</field>
<field name="type">ir.actions.server</field>
</record>
<record id="account_streamline_multi_validate_action" model="ir.values">
<field name="key2">client_action_multi</field>
<field name="model">account.move</field>
<field name="name">Post</field>
<field name="value"
eval="'ir.actions.server,%d' % account_streamline_multi_validate_server_action" />
</record>
</data>
</openerp>