Files
bank-payment/account_banking/wizard/bank_import_view.xml
Stefan Rijnhart 14d2cc3f91 [ADD] Useful defaults on simple setups for import settings (lp:931395)
[ADD] Default to first available parser on the import wizard
[FIX] Statements field on import wizard not invisible in initial state
[FIX] Typo in Dutch translation
2012-05-02 17:09:49 +02:00

81 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_banking_import" model="ir.ui.view">
<field name="name">account.banking.bank.import</field>
<field name="model">account.banking.bank.import</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Import Bank Transactions File">
<group colspan="4" states="init,ready,error">
<separator colspan="4" string="Select the processing details:"/>
<field name="company" colspan="1"/>
<field name="file"/>
<newline />
<field name="parser"/>
<field name="state" invisible="1"/>
</group>
<notebook colspan="4">
<page attrs="{'invisible': [('state', '!=', 'review')]}" string="Transactions">
<field name="line_ids" colspan="4" nolabel="1">
<tree string="Transaction" colors="red:duplicate;blue:reconcile_id">
<field name="date"/>
<field name="amount"/>
<field name="ref"/>
<field name="partner_bank_id"/>
<field name="partner_id"/>
<field name="account_id"/>
<field name="reconcile_id"/>
<field name="duplicate"/>
</tree>
</field>
</page>
<page attrs="{'invisible': [('state', '=', 'init')]}" string="Log">
<field name="log" colspan="4" nolabel="1" width="500"/>
</page>
<page attrs="{'invisible': [('state', '!=', 'ready')]}" string="Statements">
<field name="statement_ids" colspan="4" nolabel="1"
attrs="{'invisible': [('state', '!=', 'ready')]}" />
</page>
</notebook>
<group colspan="2" >
<button icon="gtk-cancel"
special="cancel"
states="init"
string="Cancel"/>
<button icon="gtk-ok"
string="Import"
states="init"
name="import_statements_file"
type="object"/>
<button icon="gtk-close"
special="cancel"
string="Close"
states="ready,error"/>
<button icon="gtk-close"
name="cancel_statement_lines"
type="object"
string="Cancel"
states="review"/>
<button icon="gtk-ok"
name="create_statement_lines"
type="object"
string="Confirm"
states="review"/>
</group>
</form>
</field>
</record>
<record id="wizard_account_banking_import_file" model="ir.actions.act_window">
<field name="name">Import Bank Statements File</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.banking.bank.import</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_banking_import"/>
<field name="target">new</field>
</record>
</data>
</openerp>