Counterpart relations between Journal Items
Use account.tax Tax model for discounts as well
Account Partner Patch
Account utilities