mirror of
https://github.com/NaN-tic/trytond-intercompany_create_sales_from_purchase.git
synced 2023-12-14 06:23:01 +01:00
Remove unused variable.
This commit is contained in:
parent
bb556693d2
commit
1f6040efd3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue