summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-09-26 15:06:52 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-09-26 15:06:52 +0700
commit01f308991afffaff5eda1b758dbb98d0f3ba8396 (patch)
tree42a996176f451a3feb4bbfb2a7f8cad9849dd85e /indoteknik_custom/models/purchase_order.py
parentbd8a83a76cea6ef2466c250226f7c95c38b3024c (diff)
User can't create data cab on form input, add multi update data sale order to update state and invoice_status
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index daf8d269..08f38afe 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -324,7 +324,7 @@ class PurchaseOrder(models.Model):
def re_calculate(self):
for line in self.order_line:
sale_order_line = self.env['sale.order.line'].search([
- ('product_id', '=', line.product_id.id),
+ ('id', '=', line.so_line_id.id),
('order_id', '=', line.order_id.sale_order_id.id)
], limit=1, order='price_reduce_taxexcl')
for so_line in sale_order_line: