[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#59387 X-original-commit: f54f485cc6b0eb6c25a2753ca2c764a32eb18f66 Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user