Do not crash if purchase module is not activated.
This commit is contained in:
parent
205b61b765
commit
69bafccf2b
|
@ -76,7 +76,7 @@ class InvoiceLine(metaclass=PoolMeta):
|
|||
PurchaseLine = pool.get('purchase.line')
|
||||
Purchase = pool.get('purchase.purchase')
|
||||
except:
|
||||
pass
|
||||
Purchase = None
|
||||
|
||||
invoice_type = Transaction().context.get('invoice_type', 'both')
|
||||
|
||||
|
|
Loading…
Reference in New Issue