summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-09-26 18:25:41 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-09-26 18:25:41 +0700
commit7ae5b8b7baafb9ed302c3c3e54f3f44664651c06 (patch)
tree930ec4518e3e36f9e0a6bc980a931c1f4ed37120 /indoteknik_custom/models/sale_order.py
parent98d8bb612184f5354c076f52143afcfad4e05e6f (diff)
Update purchase_order.py, purchase_order_line.py, and 2 more files...
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
-rwxr-xr-xindoteknik_custom/models/sale_order.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index e317fb8e..1fb88495 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -161,8 +161,6 @@ class SaleOrderLine(models.Model):
def onchange_vendor_id(self):
if not self.product_id or self.product_id.type == 'service':
return
- test1 = self.vendor_id.id
- test2 = self.product_id.id
purchase_price = self.env['purchase.pricelist'].search(
[('vendor_id', '=', self.vendor_id.id), ('product_id', '=', self.product_id.id)], limit=1)
self.purchase_price = purchase_price.product_price