[FIX] account_check_writing: correct domains on allow_check

Fixes #4269
This commit is contained in:
jbeficent 2014-12-17 14:47:13 +01:00 committed by Martin Trigaux
parent 43cf6d51d2
commit 822466e352
1 changed files with 3 additions and 3 deletions

View File

@ -12,14 +12,14 @@
<field name="amount" position="after">
<newline/>
<field name="allow_check" invisible="1"/>
<field name="amount_in_word" attrs="{'invisible':[('allow_check','!=',1)]}" nolabel="1" colspan="6"/>
<field name="amount_in_word" attrs="{'invisible':[('allow_check','!=',True)]}" nolabel="1" colspan="6"/>
<newline/>
</field>
<field name="number" position="replace">
<field name="number" attrs="{'readonly':[('allow_check','!=',1)]}" />
<field name="number" attrs="{'readonly':[('allow_check','!=',True)]}" />
</field>
<button name="proforma_voucher" position="after">
<button name="print_check" icon="gtk-print" string="Print Check" type="object" attrs="{'invisible':['|',('allow_check','!=',1),('state','!=','posted') ]}" class="oe_highlight"/>
<button name="print_check" icon="gtk-print" string="Print Check" type="object" attrs="{'invisible':['|',('allow_check','!=',True),('state','!=','posted') ]}" class="oe_highlight"/>
</button>
</field>
</record>