diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-07 15:45:56 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-07 15:45:56 +0700 |
| commit | 2028568c5aba7a63a3dd5e4786d2e78fa77f0906 (patch) | |
| tree | 56b352d3968d6947b247a7eb8624b124a6ec0933 | |
| parent | 981d77b17338cf1a0fe2d83c69258a9f3cdebe0f (diff) | |
fix bug purchase price so
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index ecd43960..5a3cada9 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -661,6 +661,7 @@ class SaleOrderLine(models.Model): [('product_id', '=', self.product_id.id)], limit=1, order='product_price ASC') line.vendor_id = purchase_price.vendor_id line.tax_id = line.order_id.sales_tax_id + line.purchase_price = purchase_price.product_price def compute_delivery_amt_line(self): for line in self: |
