Skip to content

Commit

Permalink
Merge PR OCA#359 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 12, 2024
2 parents ca4c165 + 991f9b3 commit 844e28e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ class SaleOrderLine(models.Model):
def write(self, vals):
res = super().write(vals)
if vals.get("name"):
moves = self.env["stock.move"].search([("sale_line_id", "=", self.id)])
if moves:
moves.write({"description_picking": vals["name"]})
self.move_ids.description_picking = vals["name"]
return res

0 comments on commit 844e28e

Please sign in to comment.