diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-10-18 16:37:11 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-10-18 16:37:11 +0700 |
| commit | 78f8aeafd40befa56c96f2892012a4a822684265 (patch) | |
| tree | 738beee67ce8a785d0e87046a5faecec3d8301e4 | |
| parent | 0fe05527d92a45b38a3670241636b422c1054320 (diff) | |
forgot to change field price unit
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 59d5ac3e..e8cd86fa 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -75,7 +75,7 @@ class PurchaseOrder(models.Model): 'vendor_id': line.order_id.partner_id.id, 'product_id': line.product_id.id, 'product_price': 0.00, - 'system_price': line.price_unit, + 'system_price': price_unit, 'system_last_update': current_time, }]) return True @@ -83,7 +83,7 @@ class PurchaseOrder(models.Model): for pricelist in purchase_pricelist: pricelist.write({ 'system_last_update': current_time, - 'system_price': line.price_unit + 'system_price': price_unit }) def _compute_date_planned(self): |
