[FIX] stock: always show the detailed operation button

We want be able to click on the button right at the stock move creation

Task: 3256447
X-original-commit: d8926ec8f4a2d8f7840ea4c0ddd8393a74e57d90
Part-of: odoo/odoo#126069
This commit is contained in:
William Henrotin
2023-06-23 16:35:21 +02:00
parent 9f6ed9f6d1
commit aede5c595a
+1 -1
View File
@@ -249,7 +249,7 @@ class StockMove(models.Model):
else:
move.show_details_visible = (((consignment_enabled and move.picking_code != 'incoming') or
show_details_visible or move.has_tracking != 'none') and
move.state != 'draft' and
(move.state != 'draft' or move.picking_id) and
move.show_operations is False)
def _compute_show_reserved_availability(self):