Skip to content

Commit f332134

Browse files
[FIX] purchase order line lot_id
1 parent c07565f commit f332134

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

purchase_lot/models/purchase_order_line.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ class PurchaseOrderLine(models.Model):
2121
def _compute_lot_id(self):
2222
for line in self:
2323
line.lot_id = (
24-
line.move_dest_ids.restrict_lot_id | line.move_ids.restrict_lot_id
24+
line.move_dest_ids.restrict_lot_id
25+
| line.move_ids.restrict_lot_id
26+
| line.sale_order_line.lot_id
2527
)
2628

2729
@api.model

0 commit comments

Comments
 (0)