Usage of purchase and sale models even when not activated
Spotted on https://discuss.tryton.org/t/stock-account-configuration-french-chart-of-accounts/3996.
If the account_invoice
module is activated but not the sale
or purchase
, InvoiceLine._get_tax_rule_pattern
fails.