[IMP] attr

bzr revid: nco@tinyerp.com-20121030123350-ukp8rwlm1rvtuulj
This commit is contained in:
Nimesh (Open ERP) 2012-10-30 18:03:50 +05:30
parent 596bbf55c7
commit 83079b66f6
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@
<field name="purchase_invoice_method" invisible="1"/>
</xpath>
<xpath expr="//button[@name='action_process']" position="after">
<button name="create_draft_invoice" string="Receive &amp; Control Invoice" attrs="{'invisible':[('purchase_invoice_method', '!=', 'picking')]}" type="object" class="oe_highlight"/>
<button name="create_draft_invoice" string="Receive &amp; Control Invoice" attrs="{'invisible':[('purchase_invoice_method', '=', 'manual')]}" type="object" class="oe_highlight"/>
</xpath>
</field>
</record>