Merge pull request #2 from lepistone/7.0-replace-print-actions-mdh

[FIX] replace both Print buttons with the new action
This commit is contained in:
Yannick Vaucher
2014-08-19 10:38:44 +02:00

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>