diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-06-28 12:09:45 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-06-28 12:09:45 +0700 |
| commit | ecf9d25de623c5cef7f051b650c065c054a08a14 (patch) | |
| tree | 434d530d2bc1489f8b3f376380ccc3ac6ceb2944 | |
| parent | 15712ec2548d4f70dd335564ac2b50b35bb33f37 (diff) | |
fix error vendor subtotal
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 09ee88fa..a15a2572 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -476,7 +476,7 @@ class SaleOrderLine(models.Model): def compute_vendor_subtotal(self): # self.vendor_subtotal = 1 for line in self: - if line.vendor_id: + if line.purchase_price: product = line.product_id if product: |
