~taktik/openobject-addons/hui-extra-6.1

« back to all changes in this revision

Viewing changes to account_bank_statement_voucher/account_voucher_view.xml

  • Committer: root
  • Date: 2012-09-06 09:52:09 UTC
  • Revision ID: root@oerp61-20120906095209-p9jr1m2joufrb48k
Update Noviat 6.1 accounting modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<openerp>
 
3
  <data>
 
4
 
 
5
    <record model="ir.ui.view" id="view_partner_payment_form">
 
6
      <field name="name">account.voucher.partner.payment.form</field>
 
7
      <field name="model">account.voucher</field>
 
8
      <field name="type">form</field>
 
9
      <field name="arch" type="xml">
 
10
        <form string="Payment Reconciliation">
 
11
          <field name="partner_id" invisible="1"/>
 
12
          <field name="currency_id" invisible="1"/>
 
13
          <field name="amount" invisible="1"/>
 
14
          <field name="journal_id" invisible="1"/>
 
15
          <field name="date" invisible="1"/>
 
16
          <field name="company_id" invisible="1"/>
 
17
          <field name="account_id" invisible="1"/>
 
18
          <field name="type" invisible="True"/>
 
19
          <group colspan="4">
 
20
            <separator string="Associated Bank Transaction" colspan="4"/>
 
21
            <field name="stline_info" colspan="4" nolabel="1" width="800"/>
 
22
          </group>
 
23
          <notebook colspan="4">
 
24
            <page string="Reconciliaton Details">
 
25
              <field name="line_dr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="140" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
 
26
                <tree string="Partner Invoices and Outstanding transactions" editable="bottom" colors="gray:amount==0">
 
27
                  <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
 
28
                      on_change="onchange_move_line_id(move_line_id)"
 
29
                      domain="[('account_id.type','in',['receivable','payable']),('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
 
30
                      required="1"
 
31
                      />
 
32
                  <field name="account_id" readonly="1"/>
 
33
                  <field name="date_original" readonly="1"/>
 
34
                  <field name="date_due" readonly="1"/>
 
35
                  <field name="amount_original" readonly="1"/>
 
36
                  <field name="amount_unreconciled" sum="Total Open Balance" readonly="1"/>
 
37
                  <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
 
38
                  <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
 
39
                </tree>
 
40
              </field>
 
41
              <field name="line_cr_ids" colspan="4" nolabel="1" context="{'journal_id':journal_id, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
 
42
                <tree string="Credits" editable="bottom" colors="gray:amount==0">
 
43
                  <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
 
44
                      on_change="onchange_move_line_id(move_line_id)"
 
45
                      domain="[('account_id.type','in',('receivable','payable')),('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
 
46
                      required="1"   
 
47
                      />
 
48
                  <field name="account_id" readonly="1"/>
 
49
                  <field name="date_original" readonly="1"/>
 
50
                  <field name="date_due" readonly="1"/>
 
51
                  <field name="amount_original" readonly="1"/>
 
52
                  <field name="amount_unreconciled" sum="Total Open Balance" readonly="1"/>
 
53
                  <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
 
54
                  <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
 
55
                </tree>
 
56
              </field>
 
57
              <group col="2" colspan="3">
 
58
                <separator string="Other Information" colspan="2"/>
 
59
                <field name="number"/>
 
60
              </group>
 
61
              <group col="2" colspan="1">
 
62
                <group col="4" colspan="1" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
 
63
                  <separator string="Currency Options" colspan="4"/>
 
64
                  <field name="is_multi_currency" invisible="1"/>
 
65
                  <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" groups='base.group_extended' colspan="3"/>
 
66
                  <field name="payment_rate_currency_id" groups='base.group_extended' colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
 
67
                  <field name="paid_amount_in_company_currency" groups='base.group_extended' colspan="4" invisible="1"/>
 
68
                </group>
 
69
                <group col="2" colspan="1">
 
70
                  <separator string="Reconciliation Options" colspan="2"/>
 
71
                  <field name="writeoff_amount"/>
 
72
                  <field name="payment_option" required="1"/>
 
73
                  <field name="writeoff_acc_id"
 
74
                         attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
 
75
                         domain="[('type','=','other')]"/>
 
76
                  <field name="comment"
 
77
                         attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
 
78
                  <field name="analytic_id"
 
79
                         groups="analytic.group_analytic_accounting"/>
 
80
                </group>
 
81
              </group>
 
82
            </page>
 
83
            <page string="Journal Items" groups="base.group_extended" attrs="{'invisible': [('state','!=','posted')]}">
 
84
              <group col="6" colspan="4">
 
85
                <field name="period_id"/>
 
86
                <field name="audit"/>
 
87
              </group>
 
88
              <field name="move_ids" colspan="4" nolabel="1" readonly="1">
 
89
                <tree string="Journal Items">
 
90
                  <field name="move_id"/>
 
91
                  <field name="ref"/>
 
92
                  <field name="date"/>
 
93
                  <field name="statement_id"/>
 
94
                  <field name="partner_id"/>
 
95
                  <field name="account_id"/>
 
96
                  <field name="name"/>
 
97
                  <field name="debit"/>
 
98
                  <field name="credit"/>
 
99
                  <field name="state"/>
 
100
                  <field name="reconcile_id"/>
 
101
                  <field name="reconcile_partial_id"/>
 
102
                  <field name="amount_currency"/>
 
103
                  <field name="currency_id"/>
 
104
                </tree>
 
105
              </field>
 
106
            </page>
 
107
            <page string="Internal Notes">
 
108
              <separator string="Notes" colspan="4"/>
 
109
              <field name="narration" colspan="4" nolabel="1"/>
 
110
            </page>
 
111
          </notebook>
 
112
          <group col="10" colspan="4">
 
113
            <field name="state"/>
 
114
            <button name="cancel_voucher" string="Cancel" states="draft,proforma" icon="gtk-cancel"/>
 
115
            <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" icon="terp-stock_effects-object-colorize" confirm="Are you sure to unreconcile this record ?"/>
 
116
            <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
 
117
            <button name="button_dummy" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
 
118
            <button name="proforma_voucher" string="Validate" states="draft" icon="gtk-go-forward"/>
 
119
            <button special="button_close" string="Save &amp; Close" icon="gtk-apply" type="object"/>
 
120
            <button special="cancel" string="Close" icon="terp-dialog-close" type="object"/>
 
121
          </group>
 
122
        </form>
 
123
      </field>
 
124
    </record>
 
125
 
 
126
    <record model="ir.ui.view" id="view_partner_receipt_form">
 
127
      <field name="name">account.voucher.partner.receipt.form</field>
 
128
      <field name="model">account.voucher</field>
 
129
      <field name="type">form</field>
 
130
      <field name="arch" type="xml">
 
131
        <form string="Payment Reconciliation">
 
132
          <field name="partner_id" invisible="1"/>
 
133
          <field name="currency_id" invisible="1"/>
 
134
          <field name="amount" invisible="1"/>
 
135
          <field name="journal_id" invisible="1"/>
 
136
          <field name="date" invisible="1"/>
 
137
          <field name="company_id" invisible="1"/>
 
138
          <field name="account_id" invisible="1"/>
 
139
          <field name="type" invisible="True"/>
 
140
          <group colspan="4">
 
141
            <separator string="Associated Bank Transaction" colspan="4"/>
 
142
            <field name="stline_info" colspan="4" nolabel="1" width="800"/>
 
143
          </group>
 
144
          <notebook colspan="4">
 
145
            <page string="Reconciliaton Details">
 
146
              <field name="line_cr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="140" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
 
147
                <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
 
148
                  <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
 
149
                      on_change="onchange_move_line_id(move_line_id)"
 
150
                      domain="[('account_id.type','in',['receivable','payable']),('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
 
151
                      required="1"
 
152
                      />
 
153
                  <field name="account_id" readonly="1"/>
 
154
                  <field name="date_original" readonly="1"/>
 
155
                  <field name="date_due" readonly="1"/>
 
156
                  <field name="amount_original" readonly="1"/>
 
157
                  <field name="amount_unreconciled" sum="Total Open Balance" readonly="1"/>
 
158
                  <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
 
159
                  <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
 
160
                </tree>
 
161
              </field>
 
162
              <field name="line_dr_ids" colspan="4" nolabel="1" context="{'journal_id':journal_id, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
 
163
                <tree string="Credits" editable="bottom" colors="gray:amount==0">
 
164
                  <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
 
165
                      on_change="onchange_move_line_id(move_line_id)"
 
166
                      domain="[('account_id.type','in',('receivable','payable')),('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
 
167
                      required="1"   
 
168
                      />
 
169
                  <field name="account_id" readonly="1"/>
 
170
                  <field name="date_original" readonly="1"/>
 
171
                  <field name="date_due" readonly="1"/>
 
172
                  <field name="amount_original" readonly="1"/>
 
173
                  <field name="amount_unreconciled" sum="Total Open Balance" readonly="1"/>
 
174
                  <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
 
175
                  <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
 
176
                </tree>
 
177
              </field>
 
178
              <group col="2" colspan="3">
 
179
                <separator string="Other Information" colspan="2"/>
 
180
                <field name="number"/>
 
181
              </group>
 
182
              <group col="2" colspan="1">
 
183
                <group col="4" colspan="1" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
 
184
                  <separator string="Currency Options" colspan="4"/>
 
185
                  <field name="is_multi_currency" invisible="1"/>
 
186
                  <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" groups='base.group_extended' colspan="3"/>
 
187
                  <field name="payment_rate_currency_id" groups='base.group_extended' colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
 
188
                  <field name="paid_amount_in_company_currency" groups='base.group_extended' colspan="4" invisible="1"/>
 
189
                </group>                
 
190
                <group col="2" colspan="1">
 
191
                  <separator string="Reconciliation Options" colspan="2"/>
 
192
                  <field name="writeoff_amount"/>
 
193
                  <field name="payment_option" required="1"/>
 
194
                  <field name="writeoff_acc_id"
 
195
                         attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
 
196
                         domain="[('type','=','other')]"/>
 
197
                  <field name="comment"
 
198
                         attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
 
199
                  <field name="analytic_id"
 
200
                         groups="analytic.group_analytic_accounting"/>
 
201
                </group>
 
202
              </group>
 
203
            </page>
 
204
            <page string="Journal Items" groups="base.group_extended" attrs="{'invisible': [('state','!=','posted')]}">
 
205
              <group col="6" colspan="4">
 
206
                <field name="period_id"/>
 
207
                <field name="audit"/>
 
208
              </group>
 
209
              <field name="move_ids" colspan="4" nolabel="1" readonly="1">
 
210
                <tree string="Journal Items">
 
211
                  <field name="move_id"/>
 
212
                  <field name="ref"/>
 
213
                  <field name="date"/>
 
214
                  <field name="statement_id"/>
 
215
                  <field name="partner_id"/>
 
216
                  <field name="account_id"/>
 
217
                  <field name="name"/>
 
218
                  <field name="debit"/>
 
219
                  <field name="credit"/>
 
220
                  <field name="state"/>
 
221
                  <field name="reconcile_id"/>
 
222
                  <field name="reconcile_partial_id"/>
 
223
                  <field name="amount_currency"/>
 
224
                  <field name="currency_id"/>
 
225
                </tree>
 
226
              </field>
 
227
            </page>
 
228
            <page string="Internal Notes">
 
229
              <separator string="Notes" colspan="4"/>
 
230
              <field name="narration" colspan="4" nolabel="1"/>
 
231
            </page>
 
232
          </notebook>
 
233
          <group col="10" colspan="4">
 
234
            <field name="state"/>
 
235
            <button name="cancel_voucher" string="Cancel" states="draft,proforma" icon="gtk-cancel"/>
 
236
            <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" icon="terp-stock_effects-object-colorize" confirm="Are you sure to unreconcile this record ?"/>
 
237
            <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
 
238
            <button name="button_dummy" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
 
239
            <button name="proforma_voucher" string="Validate" states="draft" icon="gtk-go-forward"/>
 
240
            <button special="button_close" string="Save &amp; Close" icon="gtk-apply" type="object"/>
 
241
            <button special="cancel" string="Close" icon="terp-dialog-close" type="object"/>
 
242
          </group>
 
243
        </form>
 
244
      </field>
 
245
    </record>
 
246
 
 
247
  </data>
 
248
</openerp>
 
 
b'\\ No newline at end of file'