[FIX] replace both Print buttons with the new action

This commit is contained in:
Matthieu Dietrich
2014-07-01 11:12:24 +02:00
parent 15863e3b5b
commit 37fdb465d9

View File

@@ -6,7 +6,10 @@
<field name="model">stock.picking.out</field>
<field name="inherit_id" ref="delivery.view_delivery_order_inherit_stock"/>
<field name="arch" type="xml">
<xpath expr="/form/header//button[@string='Print Delivery Order']" position="attributes">
<xpath expr="/form/header//button[@string='Print Delivery Order' and @states='confirmed,assigned']" position="attributes">
<attribute name="name">%(stock.report_picking_list_out)d</attribute>
</xpath>
<xpath expr="/form/header//button[@string='Print Delivery Order' and @states='done']" position="attributes">
<attribute name="name">%(stock.report_picking_list_out)d</attribute>
</xpath>
</field>