Files
bank-payment/account_banking/wizard/banking_transaction_wizard.xml
OpenERP instance user 059e8d4420 [ADD] field 'residual' in bank statement line trees
[RFR] field 'match_type' on bank statement lines is now a related field
[FIX] bug: invoices with state 'debid denied' are selected for new nebit orders
[ADD] filter button on invoices search view for state 'debit denied'
[FIX] invoice workflow does not allow reopening of invoices in state debit denied
[FIX] match wizard does not show payment line but move line for storno type matches
2011-12-21 14:06:26 +01:00

126 lines
7.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="transaction_wizard_first">
<field name="name">transaction.wizard.first</field>
<field name="type">form</field>
<field name="model">banking.transaction.wizard</field>
<field name="arch" type="xml">
<form string="Match transaction">
<!-- fields used for form logic -->
<field name="payment_order_ids" invisible="True"/>
<field name="invoice_ids" invisible="True"/>
<field name="move_line_ids" invisible="True"/>
<field name="match_multi" invisible="True"/>
<field name="duplicate" invisible="True"/>
<field name="amount" invisible="True"/>
<group colspan="2" col="2">
<!-- Duplicate flagging -->
<group colspan="2" col="2" attrs="{'invisible': [('duplicate', '=', False)]}">
<separator string="Duplicate flag"/>
<label colspan="2" string="This bank transfer was marked as a duplicate. You can either confirm that this is not the case, or remove the bank transfer from the system."/>
<newline/>
<button colspan="1"
name="reverse_duplicate"
type="object"
string="Remove duplicate flag"/>
</group>
<!-- (semi-) automatic matching and selection -->
<group colspan="2" col="2">
<separator string="Current match" colspan="2"/>
<field name="match_type"/>
<group attrs="{'invisible': [('match_multi', '=', False)]}">
<label colspan="2" string="Multiple matches were found for this bank transfer. You must pick one of the matches or select a match manually below." />
</group>
<field name='payment_line_id'
attrs="{'invisible': [('match_type', '!=', 'storno'),('match_type', '!=', 'payment')]}"
/>
<group attrs="{'readonly': [('match_multi', '!=' True)]}">
<!-- show if we have an invoice type match (but the user may need to select from multiple options)
or whenever there is an invoice_id (e.g. in case of a manual match)
-->
<field name='invoice_id'
attrs="{'readonly': [('match_multi', '=', False)], 'invisible': [('match_type', '!=', 'invoice'),('invoice_id', '=', False)]}"
domain="[('id', 'in', invoice_ids[0][2])]"
/>
<!-- show if we have a move type match or a manual match without an invoice_id
-->
<field name='move_line_id'
attrs="{'readonly': [('match_multi', '=', False)], 'invisible': [('match_type', '!=', 'move'),('invoice_id', '=', False)]}"
domain="[('id', 'in', move_line_ids[0][2])]"
/>
<field name='payment_order_id'
attrs="{'readonly': [('match_multi', '=', False)], 'invisible': [('match_type', '!=', 'payment_order')]}"
domain="[('id', 'in', payment_order_ids[0][2])]"
/>
</group>
<button colspan="1"
name="trigger_write"
type="object"
attrs="{'invisible': [('match_multi', '=', False)]}"
string="Select"/>
<newline/>
<!-- residual and write off -->
<group attrs="{'invisible': [('residual', '=', False)]}" colspan="2" col="2">
<separator string="Residual write-off"/>
<label string="If the amount exceeds the match, you must set a write-off account and journal for the residual of this reconciliation. If the amount is smaller than the match, this is optional. If you do not set a write-off account in this case, the result will be a partial reconciliation." colspan="2"/>
<field name="residual"/>
<!-- no luck with these lt/gt calculations in attrs -->
<field name="writeoff_account_id"
attrs="{'required': ['|','&amp;',('residual', '&lt;', 0),('amount', '&gt;', 0),'&amp;',('residual', '&gt;', 0),('amount', '&lt;', 0)]}"/>
<field name="writeoff_journal_id"
attrs="{'required': ['|','&amp;',('residual', '&lt;', 0),('amount', '&gt;', 0),'&amp;',('residual', '&gt;', 0),('amount', '&lt;', 0)]}"/>
<button colspan="1"
name="trigger_write"
type="object"
string="Set write-off account"/>
</group>
<!-- Redo automatic match -->
<separator string="System match"/>
<label string="You can let the system try to match this bank statement line again after you have made any changes in the database (for instance, add an invoice or a bank account)." colspan="2"/>
<newline/>
<button colspan="1"
name="trigger_match"
type="object"
string="Match again"/>
<!-- Manual selection -->
<separator string="Manual match" colspan="2"/>
<field name="manual_invoice_id"/>
<field name="manual_move_line_id"/>
<newline/>
<button colspan="1"
name="trigger_write"
type="object"
string="Match"/>
</group>
<group attrs="{'invisible': [('match_type', '==', False)]}" colspan="2" col="2">
<separator string="Disable reconciliation"/>
<label string="You can disable the reconciliation of this bank transfer" colspan="2"/>
<newline/>
<button colspan="1"
name="disable_match"
type="object"
string="Disable reconciliation"/>
</group>
<group colspan="2">
<separator/>
<button icon="gtk-ok" string="Done" special="cancel"/>
</group>
</group>
</form>
</field>
</record>
</data>
</openerp>