7.0 refactor account_partner_required

refactor account_partner_required:
* add extension points for policies
* use constraints for readbility and robustness
* slightly adapt the test to work around an issue in account_constraints (which allows the simplification of the travis configuration)
Good catch, thanks.