~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to account_reconciliation/wizard/account_reconcile_view.xml

  • Committer: Olivier DOSSMANN
  • Date: 2011-11-17 16:27:59 UTC
  • mto: This revision was merged to the branch mainline in revision 479.
  • Revision ID: olivier@tempo-laptop-20111117162759-y2u11doaavzy6215
UF-667 [ADD] Adapt Account Reconciliation Wizard without Write-Off

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
    <!-- Delete old Write-Off wizard -->
 
6
        <delete id="account_move_line_reconcile_writeoff" model="ir.ui.view"/>
 
7
 
 
8
    <!-- Delete Write-Off fields and button for reconcile wizard -->
 
9
        <record id="inherit_view_account_move_line_reconcile_full" model="ir.ui.view">
 
10
            <field name="name">inherit.account.move.line.full.form</field>
 
11
            <field name="model">account.move.line.reconcile</field>
 
12
            <field name="type">form</field>
 
13
            <field name="inherit_id" ref="account.view_account_move_line_reconcile_full"/>
 
14
            <field name="arch" type="xml">
 
15
                <data>
 
16
                    <xpath expr="/form/separator[@string='Write-Off']" position="replace">
 
17
                    </xpath>
 
18
                    <field name="writeoff" position="replace"/>
 
19
                    <xpath expr="/form/group[1]" position="replace">
 
20
                        <group colspan="4" col="6">
 
21
                            <label string ="" colspan="2"/>
 
22
                            <button icon="gtk-cancel" special="cancel" string="Cancel"/>
 
23
                            <button icon="terp-stock_effects-object-colorize" string="Reconcile" name="trans_rec_reconcile_full" type="object" default_focus="1" attrs="{'invisible': [('state', '!=', 'total')]}"/>
 
24
                            <button icon="gtk-ok" string="Partial Reconcile" name="trans_rec_reconcile_partial_reconcile" type="object" attrs="{'invisible': [('state', '!=', 'partial')]}"/>
 
25
                        </group>
 
26
                        <field name="state" invisible="1"/>
 
27
                    </xpath>
 
28
                </data>
 
29
            </field>
 
30
        </record>
 
31
 
 
32
    </data>
 
33
</openerp>