diff options
| author | Anh Thao Pham (pta) <pta@odoo.com> | 2020-10-06 13:21:18 +0000 |
|---|---|---|
| committer | Anh Thao Pham (pta) <pta@odoo.com> | 2020-10-07 10:24:37 +0000 |
| commit | ca9d733cd6d4edfd01897edab318cbc0c8349900 (patch) | |
| tree | 6de5c0e776d76ca8552ccaf75bac324993701b64 /addons/delivery | |
| parent | 61ffe97d03deae0aee72568311c453d1cd3470c8 (diff) | |
[FIX] delivery: hide Print Return Label for non-incoming picking
"Print Return Label" button on a Transfer is showed when `is_return_picking` field is True.
But `is_return_picking` is True for any picking that is a return of another picking, making
the button visible for the return of a return, when it should not as it is an outgoing picking.
opw-2312425
closes odoo/odoo#59380
X-original-commit: f54f485cc6b0eb6c25a2753ca2c764a32eb18f66
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
Diffstat (limited to 'addons/delivery')
| -rw-r--r-- | addons/delivery/views/delivery_view.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/delivery/views/delivery_view.xml b/addons/delivery/views/delivery_view.xml index dbab279f4c1..f9969bb1794 100644 --- a/addons/delivery/views/delivery_view.xml +++ b/addons/delivery/views/delivery_view.xml @@ -252,7 +252,7 @@ <button name="send_to_shipper" string="Send to Shipper" type="object" attrs="{'invisible':['|','|','|','|',('carrier_tracking_ref','!=',False),('delivery_type','in', ['fixed', 'base_on_rule']),('delivery_type','=',False),('state','not in',('done')),('picking_type_code', '=', 'incoming')]}"/> </xpath> <xpath expr="/form/header/button[last()]" position="after"> - <button name="print_return_label" string="Print Return Label" type="object" attrs="{'invisible':['|', ('is_return_picking', '=', False),('state', '=', 'done')]}"/> + <button name="print_return_label" string="Print Return Label" type="object" attrs="{'invisible':['|', '|', ('is_return_picking', '=', False),('state', '=', 'done'),('picking_type_code', '!=', 'incoming')]}"/> </xpath> </data> <xpath expr="//field[@name='partner_id']" position="attributes"> |
