[IMP] claim_from_delivery: display the 'Claims' button only on outgoing shipments

bzr revid: qdp-launchpad@openerp.com-20140422095926-w280p1pueb2ts0w3
This commit is contained in:
Quentin (OpenERP) 2014-04-22 11:59:26 +02:00
parent 57cebaaac6
commit 57e78c2846
1 changed files with 1 additions and 2 deletions

View File

@ -17,8 +17,7 @@
<field name="arch" type="xml">
<xpath expr="/form/sheet/h1" position="before">
<div class="oe_right oe_button_box">
<!-- TODO: Show only when picking type out (or add boolean to picking type)-->
<button name="%(action_claim_from_delivery)d" string="Claims" type="action"/>
<button name="%(action_claim_from_delivery)d" string="Claims" type="action" attrs="{'invisible': [('picking_type_id.code', '=', 'outgoing')]}"/>
</div>
</xpath>
</field>