1
<?xml version="1.0" encoding="utf-8"?>
5
<!-- Account Multi-Criteria Data Browser Form -->
6
<record model="ir.ui.view" id="account_mcdb_form">
7
<field name="name">account.mcdb.form</field>
8
<field name="model">account.mcdb</field>
9
<field name="type">form</field>
10
<field name="arch" type="xml">
11
<form string="Journal Items MCDB" hide_new_button="1" hide_duplicate_button="1" hide_delete_button="1">
12
<separator string="General"/>
13
<group col="4" colspan="6">
14
<field name="company_id" widget="selection" colspan="2"/><label string="" colspan="4"/>
15
<field name="posting_date_from" colspan="1" string="Posting date"/>
16
<field name="posting_date_to" colspan="1" string="to"/>
17
<field name="document_date_from" colspan="1" string="Document date"/>
18
<field name="document_date_to" colspan="1" string="to"/>
20
<separator string="Accounting"/>
21
<group col="4" colspan="6">
22
<field name="abs_id" colspan="2" attrs="{'invisible': [('model', '!=', 'account.move.line')]}"/>
23
<group col="4" colspan="6" attrs="{'invisible': [('model', '!=', 'account.move.line')]}">
24
<field name="journal_ids" colspan="2" nolabel="1">
25
<tree string="Journal">
27
<field name="name" string="Name"/>
31
<field name="period_ids" colspan="2" nolabel="1">
32
<tree string="Period">
33
<field name="name" string="Name"/>
34
<field name="date_start" string="Start"/>
35
<field name="date_stop" string="Stop"/>
40
<group col="4" colspan="6" attrs="{'invisible': [('model', '=', 'account.move.line')]}">
41
<field name="analytic_journal_ids" colspan="2" nolabel="1">
42
<tree string="Analytic Journal">
44
<field name="name" string="Name"/>
48
<label string="" colspan="2"/>
51
<separator string="Account"/>
52
<group col="4" colspan="6">
53
<field name="rev_account_ids"/>
55
<group col="4" colspan="6">
56
<field name="account_ids" colspan="2" nolabel="1">
57
<tree string="Accounts" colors="blue:type in ('view');black:type not in ('view')">
60
<field name="type" string="Type"/>
63
<field name="account_type_ids" colspan="2" nolabel="1">
64
<tree string="Account type">
70
<field name="rev_analytic_account_ids" attrs="{'invisible': [('model', '=', 'account.move.line')]}"/>
72
<field name="analytic_account_ids" colspan="2" nolabel="1" attrs="{'invisible': [('model', '=', 'account.move.line')]}">
73
<tree string="Analytic Accounts">
74
<field name="code" string="Ana. Code"/>
75
<field name="name" string="Ana. Name"/>
76
<field name="type" string="Ana. Type"/>
80
<group col="4" colspan="6" attrs="{'invisible': [('model', '!=', 'account.move.line')]}">
81
<separator string="Reconciliation"/>
82
<field name="reconciled"/><field name="reconcile_id"/>
84
<group col="4" colspan="6" attrs="{'invisible': [('model', '=', 'account.move.line')]}">
85
<separator string="Reallocation"/>
86
<field name="reallocated"/><field name="reversed"/>
89
<separator string="Amount & Currency"/>
90
<group col="8" colspan="6">
91
<field name="currency_choice" colspan="2" on_change="onchange_currency_choice(currency_choice, functional_currency_id, amount_from, amount_to)"/>
92
<field name="currency_id" attrs="{'readonly': [('currency_choice', '=', 'functional')]}" widget="selection" colspan="2" on_change="onchange_currency(currency_choice, currency_id)" domain="[('currency_table_id', '=', False)]"/>
93
<field name="amount_from" string="Amount" colspan="2" on_change="onchange_amount(currency_choice, amount_from, 'from')"/>
94
<field name="amount_to" string="to" colspan="2" on_change="onchange_amount(currency_choice, amount_to, 'to')"/>
96
<field name="fx_table_id" colspan="2" on_change="onchange_fx_table(fx_table_id)"/>
97
<field name="display_in_output_currency" colspan="2" domain="[('active', 'in', ['True', 'False']), ('currency_table_id', '=', fx_table_id)]"/>
99
<group col="6" colspan="6">
100
<field name="functional_currency_id" colspan="2" invisible="1"/>
101
<field name="amount_func_from" string="Amount" colspan="2" invisible="1"/>
102
<field name="amount_func_to" string="to" colspan="2" invisible="1"/>
103
<field name="booking_currency_id" widget="selection" colspan="2" invisible="1"/>
104
<field name="amount_book_from" string="Amount" colspan="2" invisible="1"/>
105
<field name="amount_book_to" string="to" colspan="2" invisible="1"/>
107
<group col="6" colspan="6" attrs="{'invisible': [('model', '!=', 'account.move.line')]}">
108
<separator string="Third Party" colspan="6"/>
109
<field name="partner_id" colspan="2"/>
110
<field name="employee_id" colspan="2"/>
111
<field name="register_id" colspan="2"/>
113
<separator string="Others"/>
114
<group col="4" colspan="6">
115
<field name="ref" colspan="2"/>
116
<field name="name" colspan="2"/>
118
<separator string=" "/>
119
<group col="4" colspan="6">
120
<button name="button_clear" type="object" string="Clear" icon="gtk-clear" colspan="2"/>
121
<button name="button_validate" type="object" string="Search" icon="gtk-ok" colspan="2"/>
123
<field name="model" invisible="1"/>
129
<record id="action_account_mcdb_form" model="ir.actions.act_window">
130
<field name="name">Journal Items MCDB</field>
131
<field name="res_model">account.mcdb</field>
132
<field name="view_type">form</field>
133
<field name="view_mode">form</field>
134
<field name="view_id" ref="account_mcdb_form"/>
137
<record id="action_account_mcdb_analytic_form" model="ir.actions.act_window">
138
<field name="name">Analytic Journal Items MCDB</field>
139
<field name="res_model">account.mcdb</field>
140
<field name="view_type">form</field>
141
<field name="view_mode">form</field>
142
<field name="view_id" ref="account_mcdb_form"/>
143
<field name="context">{'from': 'account.analytic.line'}</field>
147
<menuitem id="menu_finance_mcdb" name="Multi-Criteria Data Browser" parent="account.menu_finance" sequence="12"/>
148
<menuitem string="Journal Items MCDB" action="action_account_mcdb_form" id="menu_finance_mcdb_move_line" parent="menu_finance_mcdb" sequence="1"/>
149
<menuitem string="Analytic Journal Items MCDB" action="action_account_mcdb_analytic_form" id="menu_finance_mcdb_analytic_move_line" parent="menu_finance_mcdb" sequence="2"/>