1
<?xml version="1.0" encoding="UTF-8"?>
5
<record id="view_model_purchase_form" model="ir.ui.view">
6
<field name="name">account.model.form</field>
7
<field name="model">account.model</field>
8
<field name="type">form</field>
9
<field name="inherit_id" ref="account.view_model_form"/>
10
<field name="arch" type="xml">
11
<form string="Journal Entry Model" position="replace">
12
<form string="Journal Entry Model">
14
<p id="para_has_any_bad_ad_line_exp_in"
15
style="display:none; text-align:center; color: red; font-weight: bold; font-size: 1.2em;">
16
Please review analytic allocation for lines displayed in red.
18
<script language="javascript">
19
var has_any_bad_ad_line = $('#has_any_bad_ad_line_exp_in').val();
20
if (has_any_bad_ad_line == "1") {
21
msg_dom = $('#para_has_any_bad_ad_line_exp_in')
26
<group col="6" colspan="4">
28
<field name="journal_id" domain="[('type','=','purchase'),('is_current_instance','=',True)]"/>
29
<field name="currency_id"/>
30
<group colspan="6" col="6" attrs="{'invisible': [('analytic_distribution_id', '=', False)]}">
31
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-check" context="context" colspan="3" attrs="{'invisible': [('analytic_distribution_id', '=', False)]}"/>
32
<button name="button_reset_distribution" string="Reset AD at line level" type="object" icon="gtk-undelete" colspan="3"/>
34
<group colspan="6" col="6" attrs="{'invisible': [('analytic_distribution_id', '!=', False)]}">
35
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-emblem-important" context="context" colspan="3" attrs="{'invisible': [('analytic_distribution_id', '!=', False)]}"/>
36
<button name="button_reset_distribution" string="Reset AD at line level" type="object" icon="gtk-undelete" colspan="3"/>
38
<field name="analytic_distribution_id" invisible="1"/>
39
<field colspan="6" nolabel="1" name="lines_id" widget="one2many_list"/>
42
<field name="has_any_bad_ad_line_exp_in" invisible="1" />
49
<record id="view_model_purchase_search" model="ir.ui.view">
50
<field name="name">account.model.search</field>
51
<field name="model">account.model</field>
52
<field name="type">search</field>
53
<field name="inherit_id" ref="account.view_model_search"/>
54
<field name="arch" type="xml">
56
<xpath expr="//filter[@string='Sale']" position="replace"/>
57
<xpath expr="//filter[@string='Purchase']" position="replace"/>
62
<record id="view_account_journal_purchase_search" model="ir.ui.view">
63
<field name="name">account.journal.search</field>
64
<field name="model">account.journal</field>
65
<field name="type">search</field>
66
<field name="inherit_id" ref="account.view_account_journal_search"/>
67
<field name="arch" type="xml">
69
<xpath expr="//filter[@string='Sale']" position="replace"/>
70
<xpath expr="//filter[@string='Purchase']" position="replace"/>
71
<xpath expr="//filter[@string='Liquidity']" position="replace"/>
72
<xpath expr="//filter[@string='Others']" position="replace"/>
73
<xpath expr="//group[2]" position="replace"/>
78
<record id="account.view_model_line_tree" model="ir.ui.view">
79
<field name="name">account.model.line.tree</field>
80
<field name="model">account.model.line</field>
81
<field name="type">tree</field>
82
<field name="arch" type="xml">
83
<tree string="Journal Entry Model Line" editable="bottom"
84
colors="red: exp_in_ad_state in ('no_header', 'bad_header', 'invalid')">
85
<field name="sequence" readonly="1"/>
87
<field name="account_id" domain="[('restricted_area', '=', 'recurring_lines')]"/>
88
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-stock_symbol-selection" context="context" attrs="{'invisible': [('is_allocatable', '=', False)]}"/>
89
<field name="analytic_distribution_state_recap"/>
90
<field name="have_analytic_distribution_from_header" invisible="1"/>
91
<field name="analytic_distribution_state" invisible="1"/>
92
<field name="is_allocatable" invisible="1"/>
93
<field name="partner_id"/>
95
<field name="credit"/>
96
<field name="exp_in_ad_state" invisible="1"/>
101
<record id="view_subscription_form" model="ir.ui.view">
102
<field name="name">account.subscription.form</field>
103
<field name="model">account.subscription</field>
104
<field name="type">form</field>
105
<field name="inherit_id" ref="account.view_subscription_form"/>
106
<field name="arch" type="xml">
108
<separator string="Valid Up to" position="replace">
109
<separator string="Frequency" colspan="4"/>
116
<record id="view_subscription_line_tree" model="ir.ui.view">
117
<field name="name">account.subscription.line.tree</field>
118
<field name="model">account.subscription.line</field>
119
<field name="type">tree</field>
120
<field name="inherit_id" ref="account.view_subscription_line_tree"/>
121
<field name="arch" type="xml">
122
<tree string="Subscription lines" position="replace">
123
<tree string="Subscription lines" hide_new_button="1" hide_delete_button="1" noteditable="1">
125
<field name="move_id"/>
131
<record id="account.validate_account_move_line_view" model="ir.ui.view">
132
<field name="name">Post Journal Entries</field>
133
<field name="model">validate.account.move.lines</field>
134
<field name="type">form</field>
135
<field name="arch" type="xml">
136
<form string="Post Journal Entries">
137
<separator string="Post Journal Entries" colspan="4"/>
138
<label string="All selected journal entries will be validated and posted. It means you won't be able to modify their accounting fields anymore." colspan="2"/>
139
<separator colspan="4"/>
140
<group colspan="4" col="6">
141
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
142
<button icon="terp-camera_test" string="Approve" name="validate_move_lines" type="object" default_focus="1"/>
148
<!-- UFTP-103 Recurring entries AJ with colorize in red of invalid Analytic Distri -->
149
<record model="ir.ui.view" id="account_move_line_recurring_entries_to_validate">
150
<field name="name">account.move.line.recurring_entries_to_validate</field>
151
<field name="model">account.move.line</field>
152
<field name="type">tree</field>
153
<field name="arch" type="xml">
154
<tree string="Recurring Entries To Validate" min_rows="100" hide_new_button="1" hide_delete_button="1"
155
colors="red:analytic_distribution_state not in ('valid')">
156
<field name="instance_id"/>
157
<field name="is_corrigible" invisible="1"/>
158
<field name="have_an_historic" invisible="1"/>
159
<button name="button_do_accounting_corrections" type="object" string="Open Accounting Correction Wizard"
160
attrs="{'invisible': [('is_corrigible', '=', False)]}" icon="terp-mail-message-new"/>
161
<button name="button_open_corrections" type="object" string="Open corrections history"
162
attrs="{'invisible': [('have_an_historic', '=', False)]}" icon="terp-mail-"/>
163
<field name="journal_id"/>
164
<field name="move_id"/>
167
<field name="document_date"/>
169
<field name="period_id" domain="[('state','=','draft')]"/>
170
<field name="account_id"/>
171
<field name="account_type" invisible="1"/>
172
<field name="move_state" invisible="1"/>
173
<field name="partner_id" invisible="1"/>
174
<field name="employee_id" invisible="1"/>
175
<field name="transfer_journal_id" invisible="1"/>
176
<field name="partner_txt"/>
177
<field name="partner_type" invisible="1"/>
178
<!-- allow AD editing -->
179
<field name="display_analytic_button" invisible="1"/>
180
<field name="analytic_distribution_state"/>
181
<field name="analytic_distribution_id" invisible="1"/>
182
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-stock_symbol-selection"
183
context="context" attrs="{'readonly': [('from_import_cheque_id', '!=', False)], 'invisible': [('display_analytic_button', '=', False)]}"/>
184
<field name="debit_currency"/>
185
<field name="credit_currency"/>
186
<field name="currency_id"/>
187
<field name="debit" sum="Total Functional Debit"/>
188
<field name="credit" sum="Total Functional Credit"/>
189
<field name="functional_currency_id"/>
190
<field name="output_amount_debit"/>
191
<field name="output_amount_credit"/>
192
<field name="output_currency"/>
193
<field name="reconcile_txt" />
194
<field name="state"/>
195
<field name="statement_id" invisible="1"/>
201
id="act_account_subscription_to_account_move_line_open"
202
name="Recurring Entries To Validate"
203
domain="[('move_id.state','=','draft'), ('is_recurring', '=', True)]"
204
res_model="account.move.line"
205
src_model="account.subscription"
206
view_id="account_move_line_recurring_entries_to_validate"/>