[IMP] account_voucher: usability change. Moved the writeoff amount outside the paymen...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Fri, 2 Dec 2011 11:08:09 +0000 (12:08 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Fri, 2 Dec 2011 11:08:09 +0000 (12:08 +0100)
bzr revid: qdp-launchpad@openerp.com-20111202110809-4ytfndvh6fgkgy7v

addons/account_voucher/voucher_payment_receipt_view.xml

index 13cbaa7..5cf9b42 100644 (file)
                                 </group>
                                 <group col="2" colspan="1">
                                     <separator string="Payment Options" colspan="2"/>
+                                    <field name="writeoff_amount"/>
                                     <field name="payment_option" required="1"/>
-                                    <field name="writeoff_amount"
-                                           attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
                                     <field name="writeoff_acc_id"
                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
                                            domain="[('type','=','other')]"/>
                                 </group>
                                 <group col="2" colspan="1">
                                     <separator string="Payment Options" colspan="2"/>
+                                    <field name="writeoff_amount"/>
                                     <field name="payment_option" required="1"/>
-                                    <field name="writeoff_amount"
-                                           attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
                                     <field name="writeoff_acc_id"
                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
                                            domain="[('type','=','other')]"/>