Remove unused variable.

This commit is contained in:
Albert Cervera i Areny 2018-08-24 00:41:49 +02:00
parent bb556693d2
commit 1f6040efd3

View file

@ -36,6 +36,7 @@ class Purchase:
Sale = pool.get('sale.sale')
self_companies = {x.party.id for x in Company.search([])}
to_create = []
for purchase in purchases:
if purchase.party.id not in self_companies:
continue
@ -90,7 +91,6 @@ class Purchase:
product_id, list_price, unit, quantity = line
sale_line = SaleLine()
product = Product(product_id)
sale_line.product = Product(product_id)
sale_line.unit = unit
sale_line.quantity = quantity