Skip to content

Commit

Permalink
[IMP]stock_picking_back2draft: misc changes for transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Feb 7, 2025
1 parent 976987a commit e217b71
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions stock_picking_back2draft/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Pickings back to draft

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to bring cancelled pickings back to draft
This module allows to bring canceled transfers back to draft

**Table of contents**

Expand All @@ -38,7 +38,7 @@ This module allows to bring cancelled pickings back to draft
Usage
=====

Just open a cancelled pickings and click on the 'back to draft' button
Just open a canceled transfer and click on the 'back to draft' button

Bug Tracker
===========
Expand Down
2 changes: 1 addition & 1 deletion stock_picking_back2draft/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Pickings back to draft",
"summary": "Reopen cancelled pickings",
"summary": "Reopen canceled transfers",
"version": "18.0.1.0.0",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-workflow",
Expand Down
2 changes: 1 addition & 1 deletion stock_picking_back2draft/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ class StockMove(models.Model):

def action_back_to_draft(self):
if self.filtered(lambda m: m.state != "cancel"):
raise UserError(_("You can set to draft cancelled moves only"))
raise UserError(_("You can set back to draft only canceled moves"))
self.write({"state": "draft"})
3 changes: 1 addition & 2 deletions stock_picking_back2draft/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ class StockPicking(models.Model):
_inherit = "stock.picking"

def action_back_to_draft(self):
moves = self.mapped("move_ids")
moves.action_back_to_draft()
self.move_ids.action_back_to_draft()
2 changes: 1 addition & 1 deletion stock_picking_back2draft/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This module allows to bring cancelled pickings back to draft
This module allows to bring canceled transfers back to draft
2 changes: 1 addition & 1 deletion stock_picking_back2draft/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Just open a cancelled pickings and click on the 'back to draft' button
Just open a canceled transfer and click on the 'back to draft' button
4 changes: 2 additions & 2 deletions stock_picking_back2draft/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ <h1 class="title">Pickings back to draft</h1>
!! source digest: sha256:3d5dde1616f38227cdc4ab3a5a72be6b45d20ebe948b647e560418c265e3dd90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_picking_back2draft"><img alt="OCA/stock-logistics-workflow" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-workflow-18-0/stock-logistics-workflow-18-0-stock_picking_back2draft"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to bring cancelled pickings back to draft</p>
<p>This module allows to bring canceled transfers back to draft</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -386,7 +386,7 @@ <h1 class="title">Pickings back to draft</h1>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>Just open a cancelled pickings and click on the ‘back to draft’ button</p>
<p>Just open a canceled transfer and click on the ‘back to draft’ button</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
Expand Down

0 comments on commit e217b71

Please sign in to comment.