Skip to content

Commit

Permalink
wms_connector: do not unlink file sent
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Mar 20, 2024
1 parent a8e2251 commit 5c2cdee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wms_connector/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _compute_is_wms_exportable(self):
def action_force_cancel_wms(self):
self.env.user.has_group("stock.group_stock_manager")
self.wms_export_date = None
self.wms_export_attachment_id.unlink()
self.wms_export_attachment_id = None
return self.with_context(skip_wms_cancel_check=True).action_cancel()

def action_cancel(self):
Expand Down

0 comments on commit 5c2cdee

Please sign in to comment.