[FIX]: fix a small problem

(i think gtk requires improvements attrs(invisible) + states on button not working to gather)

bzr revid: mga@tinyerp.com-20100814192432-f6t817r1fykf14ip
This commit is contained in:
Mantavya Gajjar
2010-08-15 00:54:32 +05:30
parent bedb59532e
commit 0959ca3e03
+1 -1
View File
@@ -70,7 +70,7 @@
</notebook>
<group col="10" colspan="4">
<field name="state"/>
<button name="open_voucher" attrs="{'invisible':[('type','not in',['sale', 'purchase'])]}" string="Compute" states="draft" type="object" icon="terp-stock_format-scientific"/>
<button name="open_voucher" states="draft" attrs="{'readonly':[('type','not in',['sale', 'purchase'])]}" string="Compute" type="object" icon="terp-stock_format-scientific"/>
<button name="proforma_voucher" string="Create" states="draft" icon="terp-document-new"/>
<button name="recheck_voucher" string="Approve" states="recheck" icon="terp-check"/>
<!-- <button name="audit_complete" string="Audit Pass" states="posted" icon="terp-check"/>-->