details: https://code.tryton.org/tryton/commit/bfb9a8614f3c
branch: 7.8
user: Cédric Krier <[email protected]>
date: Mon Sep 07 15:24:40 2026 +0200
description:
Do not clear incoming moves that has been added to a shipment for
amendment
Closes #15070
(grafted from fb713c8a996ea659217e194c87246f1067c7fb99)
diffstat:
modules/purchase_amendment/purchase.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f6349c5f0b2c -r bfb9a8614f3c modules/purchase_amendment/purchase.py
--- a/modules/purchase_amendment/purchase.py Fri Sep 18 18:49:16 2026 +0200
+++ b/modules/purchase_amendment/purchase.py Mon Sep 07 15:24:40 2026 +0200
@@ -156,7 +156,7 @@
@classmethod
def _stock_moves(cls, line):
for move in line.moves:
- if move.state in {'staging', 'draft'}:
+ if move.state in {'staging', 'draft'} and not move.shipment:
yield move