This commit is contained in:
2026-02-02 12:26:58 +01:00
parent 747c2e4a0e
commit 703c7e46fa

View File

@@ -2058,11 +2058,13 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
to_location = self.purchase.to_location
move.from_location = from_location
if to_location.type != 'customer':
move.to_location = Location.get_transit_id()
else:
move.to_location = to_location
logger.info("FROM_LOCATION:%s",self.purchase.from_location)
logger.info("TO_LOCATION:%s",self.purchase.to_location)
if to_location:
if to_location.type != 'customer':
move.to_location = Location.get_transit_id()
else:
move.to_location = to_location
unit_price = l.get_lot_price()
# if l.invoice_line_prov != None :