[IMP]:account_vouchar:improved domain for attrs.
authorAmit Patel (OpenERP) <apa@tinyerp.com>
Mon, 21 May 2012 10:27:44 +0000 (15:57 +0530)
committerAmit Patel (OpenERP) <apa@tinyerp.com>
Mon, 21 May 2012 10:27:44 +0000 (15:57 +0530)
bzr revid: apa@tinyerp.com-20120521102744-6ygc243zu22gy81y

addons/account_voucher/voucher_sales_purchase_view.xml

index 0b83097..f931719 100644 (file)
@@ -83,7 +83,7 @@
                 <form layout="manual">
                 <div class="oe_form_topbar">
                     <button name="proforma_voucher" string="Validate" states="draft" icon="gtk-go-forward"/>
-                    <button icon="terp-dolar_ok!" name="%(act_pay_voucher)d" context="{'narration':narration, 'title':'Customer Payment', 'type':'receipt', 'partner_id':partner_id, 'reference':reference, 'amount':amount}" type="action" string="Pay" attrs="{'invisible':['|','|',('pay_now','=','pay_now'),('state','!=','posted'), ('paid','=',True)]}"/>
+                    <button icon="terp-dolar_ok!" name="%(act_pay_voucher)d" context="{'narration':narration, 'title':'Customer Payment', 'type':'receipt', 'partner_id':partner_id, 'reference':reference, 'amount':amount}" type="action" string="Pay" attrs="{'invisible':['|',('pay_now','=','pay_now'),'|',('state','=','draft'), ('paid','=',True)]}"/>
                     <button name="cancel_voucher" string="Cancel" states="draft,proforma"  icon="gtk-cancel"/>
                     <button name="cancel_voucher" string="Cancel" type="object" states="posted" icon="terp-stock_effects-object-colorize" confirm="Are you sure to confirm this record ?"/>
                     <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
                 <form layout="manual">
                 <div class="oe_form_topbar">
                     <button name="proforma_voucher" string="Validate" states="draft" icon="gtk-go-forward"/>
-                    <button icon="terp-dolar_ok!" name="%(act_pay_bills)d" context="{'narration':narration, 'title':'Bill Payment', 'type':'payment', 'partner_id': partner_id, 'reference':reference}" type="action" string="Pay Bill" attrs="{'invisible':['|','|',('pay_now','=','pay_now'),('state','!=','posted'), ('paid','=',True)]}"/>
+                    <button icon="terp-dolar_ok!" name="%(act_pay_bills)d" context="{'narration':narration, 'title':'Bill Payment', 'type':'payment', 'partner_id': partner_id, 'reference':reference}" type="action" string="Pay Bill" attrs="{'invisible':['|',('pay_now','=','pay_now'),'|',('state','=','draft'), ('paid','=',True)]}"/>
                     <button name="cancel_voucher" string="Cancel" states="draft,proforma"  icon="gtk-cancel"/>
                     <button name="cancel_voucher" string="Cancel" type="object" states="posted" icon="terp-stock_effects-object-colorize" confirm="Are you sure to confirm this record ?"/>
                     <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>