Skip to content

Commit

Permalink
[IMP] stock_barcodes_picking_batch_revision: Un-assign responsible wh…
Browse files Browse the repository at this point in the history
…en a review is requested

TT48091
  • Loading branch information
sergio-teruel committed Feb 29, 2024
1 parent 1be1db0 commit 0fea64d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ class StockPickingBatch(models.Model):
_inherit = "stock.picking.batch"

requested_review = fields.Boolean()

def write(self, vals):
res = super(StockPickingBatch, self).write(vals)
# Set not assigned batch picking to allow to be assigned to other user to review
if vals.get("requested_review", False):
self.user_id = False
return res

Check warning on line 16 in stock_barcodes_picking_batch_revision/models/stock_picking_batch.py

View check run for this annotation

Codecov / codecov/patch

stock_barcodes_picking_batch_revision/models/stock_picking_batch.py#L15-L16

Added lines #L15 - L16 were not covered by tests

0 comments on commit 0fea64d

Please sign in to comment.