diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-23 14:00:37 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-23 14:00:37 +0700 |
| commit | d87bcdfe5e6e49e31dce5c423bcdaa4dfba9623e (patch) | |
| tree | 512d01575288464c6ebddbb63ef8e42a5bf9d37d | |
| parent | f7e412da7e3d2a106dee5a02e41101237213af2d (diff) | |
change request sale_order_sync
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 5303f2c3..ebadff06 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -249,6 +249,8 @@ class PurchaseOrder(models.Model): self.order_line.unlink() for order_line in self.sale_order_id.order_line: + if order_line.vendor_id != self.partner_id: + continue if order_line.product_id.id and order_line.product_id.id not in products_exception: qty_available = order_line.product_id.qty_onhand_bandengan + order_line.product_id.qty_incoming_bandengan - order_line.product_id.outgoing_qty |
